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…
Reference in New Issue