From fc545e7ef82a73a082ab87e6416c78fe5205ad07 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 29 Apr 2018 12:11:04 +0200 Subject: [PATCH] Make shutdown faster for the case where we have zero real USB cards. --- bmusb.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.39.2