Merge pull request #2643 from xhaakon/shadow-server-client-disconnect
Don't dispose shadow server before all clients have disconnected
This commit is contained in:
commit
30fc814efa
@ -344,6 +344,14 @@ void* shadow_server_thread(rdpShadowServer* server)
|
|||||||
|
|
||||||
shadow_subsystem_stop(server->subsystem);
|
shadow_subsystem_stop(server->subsystem);
|
||||||
|
|
||||||
|
/* Signal to the clients that server is being stopped and wait for them
|
||||||
|
* to disconnect. */
|
||||||
|
MessageQueue_PostQuit(subsystem->MsgPipe->Out, 0);
|
||||||
|
while(ArrayList_Count(server->clients) > 0)
|
||||||
|
{
|
||||||
|
Sleep(100);
|
||||||
|
}
|
||||||
|
|
||||||
ExitThread(0);
|
ExitThread(0);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user