mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Merge pull request #2640 from AdmiralCurtiss/real-wiimote-crash-fix
WiimoteReal: Fix crash when switching a real Wiimote to a different slot or type during emulation.
This commit is contained in:
@ -484,10 +484,13 @@ void WiimoteScanner::ThreadFunc()
|
||||
}
|
||||
|
||||
bool Wiimote::Connect()
|
||||
{
|
||||
if (!m_run_thread.load())
|
||||
{
|
||||
m_thread_ready.store(false);
|
||||
StartThread();
|
||||
WaitReady();
|
||||
}
|
||||
return IsConnected();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user