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
committerJaime van Kessel <nallath@gmail.com>2015-06-04 12:12:31 +0300
commit95d4b34f06a1d31a9235845f04ce70d1006fda40 (patch)
treec0dda17f08dc4da99afaa826264142d0fa23c31b /plugins/USBPrinting/PrinterConnection.py
parentaed224df08b23d4bef073f4fe6486d2923bf11dd (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 3a953c3744..4a9a73bb7b 100644
--- a/plugins/USBPrinting/PrinterConnection.py
+++ b/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