mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:35:58 +08:00
Merge branch '3.1' of https://github.com/Ultimaker/Cura into 3.1
This commit is contained in:
commit
0fe51589ac
@ -394,7 +394,8 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
self._listen_thread.join()
|
self._listen_thread.join()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self._serial.close()
|
if self._serial is not None: # Avoid a race condition when a thread can change the value of self._serial to None
|
||||||
|
self._serial.close()
|
||||||
|
|
||||||
self._listen_thread = threading.Thread(target = self._listen)
|
self._listen_thread = threading.Thread(target = self._listen)
|
||||||
self._listen_thread.daemon = True
|
self._listen_thread.daemon = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user