mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01: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:
commit
cff6d9f922
@ -485,9 +485,12 @@ void WiimoteScanner::ThreadFunc()
|
||||
|
||||
bool Wiimote::Connect()
|
||||
{
|
||||
m_thread_ready.store(false);
|
||||
StartThread();
|
||||
WaitReady();
|
||||
if (!m_run_thread.load())
|
||||
{
|
||||
m_thread_ready.store(false);
|
||||
StartThread();
|
||||
WaitReady();
|
||||
}
|
||||
return IsConnected();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user