mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-11 03:51:31 +02:00
Real fix for Linux Wiimote disconnect hanging.
Fixes issue 5903.
This commit is contained in:
parent
1cf7cbb936
commit
d9aecd80b1
@ -320,7 +320,7 @@ void Wiimote::ThreadFunc()
|
||||
Common::SleepCurrentThread(1);
|
||||
#else
|
||||
bool read = false;
|
||||
while (Write() || (read = true, Read()))
|
||||
while (Write() || (read = true, IsOpen() && Read()))
|
||||
{
|
||||
if (m_audio_reports.Size() && !read)
|
||||
Read();
|
||||
|
Loading…
x
Reference in New Issue
Block a user