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