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:
Marc-André Moreau 2015-05-22 14:15:09 -04:00
commit 30fc814efa

View File

@ -344,6 +344,14 @@ void* shadow_server_thread(rdpShadowServer* server)
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);
return NULL;