mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
Real fix for Linux Wiimote disconnect hanging.
Fixes issue 5903.
This commit is contained in:
parent
1cf7cbb936
commit
d9aecd80b1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue