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:
authorArjen Hiemstra <a.hiemstra@ultimaker.com>2015-07-09 17:27:22 +0300
committerArjen Hiemstra <a.hiemstra@ultimaker.com>2015-07-09 17:34:04 +0300
commita83bcedb2261d9b4a16e2dbd58b6faa9bb611f11 (patch)
treed91f141c2be633a9a2a02ad9fcf24ad35b057341 /plugins/USBPrinting/PrinterConnection.py
parentae89ef37c05058c0d1c375b64dc2977076f37d49 (diff)
Catch errors when trying to close the connection thread
Contributes to #82
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 a4867e656a..7ef6c759ac 100644
--- a/plugins/USBPrinting/PrinterConnection.py
+++ b/plugins/USBPrinting/PrinterConnection.py
@@ -255,7 +255,10 @@ class PrinterConnection(SignalEmitter):
## Close the printer connection
def close(self):
if self._connect_thread.isAlive():
- self._connect_thread.join()
+ try:
+ self._connect_thread.join()
+ except:
+ pass
if self._serial is not None:
self.setIsConnected(False)
try: