Merge pull request #9927 from OatmealDome/double-usbgecko

GeckoSockServer: Only join connectionThread if it is joinable
This commit is contained in:
JMC47 2021-07-20 22:18:33 -04:00 committed by GitHub
commit b515786c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ GeckoSockServer::~GeckoSockServer()
clientThread.join();
}
if (client_count <= 0)
if (client_count <= 0 && connectionThread.joinable())
{
server_running.Clear();
connectionThread.join();