Browse Source

Ignored runtime exception for usb thread

Jaime van Kessel 9 years ago
parent
commit
a63d08288a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      plugins/USBPrinting/USBPrinterManager.py

+ 4 - 1
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: