Browse Source

Added exception handling to listen thread join

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

+ 4 - 1
plugins/USBPrinting/PrinterConnection.py

@@ -248,7 +248,10 @@ class PrinterConnection(SignalEmitter):
 
         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