mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:49:04 +08:00
Added exception handling to listen thread join
This commit is contained in:
parent
aed224df08
commit
95d4b34f06
@ -248,7 +248,10 @@ class PrinterConnection(SignalEmitter):
|
|||||||
|
|
||||||
if self._serial is not None:
|
if self._serial is not None:
|
||||||
self.setIsConnected(False)
|
self.setIsConnected(False)
|
||||||
self._listen_thread.join()
|
try:
|
||||||
|
self._listen_thread.join()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self._serial.close()
|
self._serial.close()
|
||||||
|
|
||||||
self._serial = None
|
self._serial = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user