GeckoSockServer: Only join connectionThread if it is joinable

This commit is contained in:
OatmealDome committed 2021-07-20 14:56:09 -04:00
1 parent b0d2df727a
commit 48bcd96526
1 file changed
+1 -1
+1 -1
View File
@@ -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();