mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 22:58:50 +00: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:
parent
c1b391d08b
commit
09f71b25b4
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue