mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Real fix for Linux Wiimote disconnect hanging.
Fixes issue 5903.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user