mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:39:03 +08:00
Only try to close connection when there is a connection to close
CURA-3603
This commit is contained in:
parent
8f6a210c75
commit
953d59788e
@ -716,7 +716,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
|
||||
## Start requesting data from printer
|
||||
def connect(self):
|
||||
self.close() # Ensure that previous connection (if any) is killed.
|
||||
if self.isConnected():
|
||||
self.close() # Close previous connection
|
||||
|
||||
self._createNetworkManager()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user