diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2013-01-14 17:55:23 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2013-01-14 17:55:23 -0600 |
| commit | b8e66a48a1b0d6a7e167bdeb784b99515bccb4e9 (patch) | |
| tree | 3588ab4406e6f94cfe803236bb690c1fe0b6adfb /Source | |
| parent | 032013c4bcbf4fa1451ea8be7c8c28f3200ae160 (diff) | |
Fix hang on Linux Dolphin close when wiimotes are connected.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/Src/HW/WiimoteReal/IONix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/Src/HW/WiimoteReal/IONix.cpp b/Source/Core/Core/Src/HW/WiimoteReal/IONix.cpp index 134c27cb22..ec838d9313 100644 --- a/Source/Core/Core/Src/HW/WiimoteReal/IONix.cpp +++ b/Source/Core/Core/Src/HW/WiimoteReal/IONix.cpp @@ -215,7 +215,7 @@ void Wiimote::Close() bool Wiimote::IsOpen() const { - return cmd_sock != -1 && int_sock != -1; + return IsConnected() && cmd_sock != -1 && int_sock != -1; } int Wiimote::IORead(unsigned char *buf) |
