]> git.sesse.net Git - bmusb/commitdiff
Make shutdown faster for the case where we have zero real USB cards.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 29 Apr 2018 10:11:04 +0000 (12:11 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 29 Apr 2018 10:11:16 +0000 (12:11 +0200)
bmusb.cpp

index 83ea717dd678512c6addbaf7609affd594115116..4a5f8a3c4b588336aa67ad3448f6e78d17e9bfb8 100644 (file)
--- 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();
 }