diff options
author | Jaime van Kessel <nallath@gmail.com> | 2015-06-04 12:12:31 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2015-06-04 12:12:31 +0300 |
commit | 95d4b34f06a1d31a9235845f04ce70d1006fda40 (patch) | |
tree | c0dda17f08dc4da99afaa826264142d0fa23c31b /plugins/USBPrinting/PrinterConnection.py | |
parent | aed224df08b23d4bef073f4fe6486d2923bf11dd (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 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 |