Index: device/usb/usb_context.cc |
diff --git a/device/usb/usb_context.cc b/device/usb/usb_context.cc |
index 7661469d294911994d8fb4b83332fb6fe267b2af..99b76ab34be140118378b95d126891e4db480709 100644 |
--- a/device/usb/usb_context.cc |
+++ b/device/usb/usb_context.cc |
@@ -63,6 +63,7 @@ void UsbContext::UsbEventHandler::ThreadMain() { |
void UsbContext::UsbEventHandler::Stop() { |
base::subtle::Release_Store(&running_, 0); |
libusb_interrupt_handle_event(context_); |
+ base::PlatformThread::Join(thread_handle_); |
} |
UsbContext::UsbContext(PlatformUsbContext context) : context_(context) { |