Skip to content
Permalink
Browse files
Merge pull request #9948 from Dentomologist/fix_wiimotescanner_shutdo…
…wn_crash

WiimoteReal: Fix Dolphin shutdown crash
  • Loading branch information
Tilka committed Aug 2, 2021
2 parents 20c7edf + cb12750 commit 4b022a4
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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();
}
}

0 comments on commit 4b022a4

Please sign in to comment.