mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Added exception handling to listen thread join
This commit is contained in:
parent
81b41b8889
commit
b5fda5b835
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue