mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
Merge pull request #9948 from Dentomologist/fix_wiimotescanner_shutdown_crash
WiimoteReal: Fix Dolphin shutdown crash
This commit is contained in:
commit
4b022a4bb1
1 changed files with 2 additions and 1 deletions
|
@ -547,7 +547,7 @@ void WiimoteScanner::StartThread()
|
|||
|
||||
void WiimoteScanner::StopThread()
|
||||
{
|
||||
if (m_scan_thread_running.TestAndClear())
|
||||
if (m_scan_thread_running.IsSet())
|
||||
{
|
||||
SetScanMode(WiimoteScanMode::DO_NOT_SCAN);
|
||||
|
||||
|
@ -556,6 +556,7 @@ void WiimoteScanner::StopThread()
|
|||
backend->RequestStopSearching();
|
||||
}
|
||||
|
||||
m_scan_thread_running.Clear();
|
||||
m_scan_thread.join();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue