mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 11:10:04 +00:00
Time between stopping and starting as session reduced from two seconds to a mere moment
This commit is contained in:
parent
5ea2f30d5c
commit
bc59b6e91d
@ -293,6 +293,10 @@ public:
|
|||||||
break;
|
break;
|
||||||
case ENET_EVENT_TYPE_DISCONNECT:
|
case ENET_EVENT_TYPE_DISCONNECT:
|
||||||
BOOST_LOG(info) << "CLIENT DISCONNECTED"sv;
|
BOOST_LOG(info) << "CLIENT DISCONNECTED"sv;
|
||||||
|
// No more clients to send video data to ^_^
|
||||||
|
if(session_state == state_e::RUNNING) {
|
||||||
|
stop(session);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ENET_EVENT_TYPE_NONE:
|
case ENET_EVENT_TYPE_NONE:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user