Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Real fix for Linux Wiimote disconnect hanging.
Fixes issue 5903.
  • Loading branch information
jordan-woyak committed Jan 15, 2013
1 parent 1cf7cbb commit d9aecd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit d9aecd8

Please sign in to comment.