From a63d08288ab69d39201069ccc83cfebe7f2ce021 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 13 Aug 2015 12:14:47 +0200 Subject: [PATCH] Ignored runtime exception for usb thread --- plugins/USBPrinting/USBPrinterManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/USBPrinting/USBPrinterManager.py b/plugins/USBPrinting/USBPrinterManager.py index 21c7fb82c2..4363883b2b 100644 --- a/plugins/USBPrinting/USBPrinterManager.py +++ b/plugins/USBPrinting/USBPrinterManager.py @@ -56,7 +56,10 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension): def stop(self): self._check_updates = False - self._update_thread.join() + try: + self._update_thread.join() + except RuntimeError: + pass def _updateThread(self): while self._check_updates: