From: Steinar H. Gunderson Date: Sun, 29 Apr 2018 10:11:04 +0000 (+0200) Subject: Make shutdown faster for the case where we have zero real USB cards. X-Git-Tag: 0.7.2~2 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fc545e7ef82a73a082ab87e6416c78fe5205ad07;p=bmusb Make shutdown faster for the case where we have zero real USB cards. --- diff --git a/bmusb.cpp b/bmusb.cpp index 83ea717..4a5f8a3 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -1479,6 +1479,7 @@ void BMUSBCapture::start_bm_thread() void BMUSBCapture::stop_bm_thread() { should_quit = true; + libusb_interrupt_event_handler(nullptr); usb_thread.join(); }