mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Only try to close connection when there is a connection to close
CURA-3603
This commit is contained in:
parent
8f6a210c75
commit
953d59788e
1 changed files with 2 additions and 1 deletions
|
@ -716,7 +716,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
|
|
||||||
## Start requesting data from printer
|
## Start requesting data from printer
|
||||||
def connect(self):
|
def connect(self):
|
||||||
self.close() # Ensure that previous connection (if any) is killed.
|
if self.isConnected():
|
||||||
|
self.close() # Close previous connection
|
||||||
|
|
||||||
self._createNetworkManager()
|
self._createNetworkManager()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue