Browse Source

Added exception handling to listen thread join

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

+ 4 - 1
plugins/USBPrinting/PrinterConnection.py

@@ -244,7 +244,10 @@ class PrinterConnection(SignalEmitter):
             self._connect_thread.join()
         if self._serial is not None:
             self.setIsConnected(False)
-            self._listen_thread.join()
+            try:
+                self._listen_thread.join()
+            except:
+                pass
             self._serial.close()
             
         self._serial = None