Shut down active client properly when killing remote server

This commit is contained in:
baldurk
2016-08-23 13:47:06 +02:00
parent a8cfc753df
commit 0ddfd3d65b
+3 -1
View File
@@ -676,8 +676,10 @@ void RenderDoc::BecomeRemoteServer(const char *listenhost, uint16_t port, volati
}
}
if(activeClientData && activeClientData->socket == NULL)
if(activeClientData && activeClientData->socket != NULL)
{
activeClientData->killThread = true;
Threading::JoinThread(activeClientData->thread);
Threading::CloseThread(activeClientData->thread);