mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 18:09:00 +08:00
Added exception handling to listen thread join
This commit is contained in:
parent
e73d48bc67
commit
1f9f253292
@ -244,7 +244,10 @@ class PrinterConnection(SignalEmitter):
|
|||||||
self._connect_thread.join()
|
self._connect_thread.join()
|
||||||
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