Real fix for Linux Wiimote disconnect hanging.

Fixes issue 5903.
This commit is contained in:
Jordan Woyak 2013-01-15 15:20:33 -06:00
parent 1cf7cbb936
commit d9aecd80b1
1 changed files with 1 additions and 1 deletions

View File

@ -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();