summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/wiimote/wiimote.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/wiimote/wiimote.cc b/libs/surfaces/wiimote/wiimote.cc
index 3f48f641cc..00de62af81 100644
--- a/libs/surfaces/wiimote/wiimote.cc
+++ b/libs/surfaces/wiimote/wiimote.cc
@@ -119,7 +119,7 @@ WiimoteControlProtocol::initializer_thread()
bdaddr = *BDADDR_ANY;
wiimote_handle = cwiid_open(&bdaddr, 0);
- if (!wiimote_handle) {
+ if (!wiimote_handle && !init_thread_quit) {
sleep(1);
// We don't know whether the issue was a timeout or a configuration
// issue