mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00
WiimoteReal: retry failed connections quickly
Retry a failed connection after a short delay -- hardware sometimes needs some time to settle, or other Bluetooth programs are attempting to query the device as well (e.g. blueman-manager).
This commit is contained in:
@ -530,6 +530,13 @@ void Wiimote::ThreadFunc()
|
|||||||
|
|
||||||
bool ok = ConnectInternal();
|
bool ok = ConnectInternal();
|
||||||
|
|
||||||
|
if (!ok)
|
||||||
|
{
|
||||||
|
// try again, it might take a moment to settle
|
||||||
|
Common::SleepCurrentThread(100);
|
||||||
|
ok = ConnectInternal();
|
||||||
|
}
|
||||||
|
|
||||||
SetReady();
|
SetReady();
|
||||||
|
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
Reference in New Issue
Block a user