From b8e66a48a1b0d6a7e167bdeb784b99515bccb4e9 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 14 Jan 2013 17:55:23 -0600 Subject: [PATCH] Fix hang on Linux Dolphin close when wiimotes are connected. --- Source/Core/Core/Src/HW/WiimoteReal/IONix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)