diff options
author | Jaime van Kessel <nallath@gmail.com> | 2015-06-04 12:12:31 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2015-06-05 14:26:51 +0300 |
commit | b5fda5b835142f0c6cdd09193e9182b21e4631d9 (patch) | |
tree | edf3cf443628965cd1224f4d3793ced488ceded8 /plugins/USBPrinting/PrinterConnection.py | |
parent | 81b41b88899077d3d21e06914280cfff4706d4a2 (diff) |
Added exception handling to listen thread join
Diffstat (limited to 'plugins/USBPrinting/PrinterConnection.py')
-rw-r--r-- | plugins/USBPrinting/PrinterConnection.py | 5 |
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 |