Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2015-06-04 12:12:31 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2015-06-05 14:26:51 +0300
commitb5fda5b835142f0c6cdd09193e9182b21e4631d9 (patch)
treeedf3cf443628965cd1224f4d3793ced488ceded8 /plugins/USBPrinting/PrinterConnection.py
parent81b41b88899077d3d21e06914280cfff4706d4a2 (diff)
Added exception handling to listen thread join
Diffstat (limited to 'plugins/USBPrinting/PrinterConnection.py')
-rw-r--r--plugins/USBPrinting/PrinterConnection.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/USBPrinting/PrinterConnection.py b/plugins/USBPrinting/PrinterConnection.py
index ad231f5207..19c5b5c07a 100644
--- a/plugins/USBPrinting/PrinterConnection.py
+++ b/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