Core: Fix SIGABRT possibility in EXI_DeviceGecko
Fixes issue 7586
This commit is contained in:
parent
770a9a42a5
commit
858d18a67e
|
@ -23,10 +23,12 @@ GeckoSockServer::GeckoSockServer()
|
||||||
GeckoSockServer::~GeckoSockServer()
|
GeckoSockServer::~GeckoSockServer()
|
||||||
{
|
{
|
||||||
if (clientThread.joinable())
|
if (clientThread.joinable())
|
||||||
|
{
|
||||||
--client_count;
|
--client_count;
|
||||||
|
|
||||||
client_running = false;
|
client_running = false;
|
||||||
clientThread.join();
|
clientThread.join();
|
||||||
|
}
|
||||||
|
|
||||||
if (client_count <= 0)
|
if (client_count <= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue