mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-23 03:43:15 +08:00
Catch errors when trying to close the connection thread
Contributes to #82
This commit is contained in:
parent
ae89ef37c0
commit
a83bcedb22
@ -255,7 +255,10 @@ class PrinterConnection(SignalEmitter):
|
||||
## Close the printer connection
|
||||
def close(self):
|
||||
if self._connect_thread.isAlive():
|
||||
self._connect_thread.join()
|
||||
try:
|
||||
self._connect_thread.join()
|
||||
except:
|
||||
pass
|
||||
if self._serial is not None:
|
||||
self.setIsConnected(False)
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user