diff options
author | Sampo Savolainen <v2@iki.fi> | 2008-11-04 20:54:44 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2008-11-04 20:54:44 +0000 |
commit | 596aa3a4feb47b6c7247a117b3302cdd73583a26 (patch) | |
tree | 3e482d15a4577d4d21df726a722e0e587b978594 /libs | |
parent | 09581e07d3cc7eaad2bd03047176ba5e7dc9f62a (diff) |
Don't wait in vain for 1 second when quitting before wiimote is bound
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4094 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/wiimote/wiimote.cc | 2 |
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 |