Merge pull request #9927 from OatmealDome/double-usbgecko
GeckoSockServer: Only join connectionThread if it is joinable
This commit is contained in:
commit
b515786c8d
|
@ -43,7 +43,7 @@ GeckoSockServer::~GeckoSockServer()
|
||||||
clientThread.join();
|
clientThread.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client_count <= 0)
|
if (client_count <= 0 && connectionThread.joinable())
|
||||||
{
|
{
|
||||||
server_running.Clear();
|
server_running.Clear();
|
||||||
connectionThread.join();
|
connectionThread.join();
|
||||||
|
|
Loading…
Reference in New Issue