mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -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()
|
self._connect_thread.join()
|
||||||
if self._serial is not None:
|
if self._serial is not None:
|
||||||
self.setIsConnected(False)
|
self.setIsConnected(False)
|
||||||
|
try:
|
||||||
self._listen_thread.join()
|
self._listen_thread.join()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self._serial.close()
|
self._serial.close()
|
||||||
|
|
||||||
self._serial = None
|
self._serial = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue