diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-09-21 21:50:26 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-09-21 21:50:30 -0400 |
| commit | 858d18a67ed0378fa877989efa58da9c1d4a5fc9 (patch) | |
| tree | 821fa8d0a273dcbc3529823d96b26af86ae3434a /Source/Core | |
| parent | 770a9a42a504c9506c4c96d4933e326844a9cdde (diff) | |
Core: Fix SIGABRT possibility in EXI_DeviceGecko
Fixes issue 7586
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/EXI_DeviceGecko.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Core/HW/EXI_DeviceGecko.cpp b/Source/Core/Core/HW/EXI_DeviceGecko.cpp index 95b40141a4..365468a6d8 100644 --- a/Source/Core/Core/HW/EXI_DeviceGecko.cpp +++ b/Source/Core/Core/HW/EXI_DeviceGecko.cpp @@ -23,10 +23,12 @@ GeckoSockServer::GeckoSockServer() GeckoSockServer::~GeckoSockServer() { if (clientThread.joinable()) + { --client_count; - client_running = false; - clientThread.join(); + client_running = false; + clientThread.join(); + } if (client_count <= 0) { |
