mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Post reply is now set to None after abort
CURA-2295
This commit is contained in:
parent
66b22134ba
commit
7da05e0f36
1 changed files with 3 additions and 1 deletions
|
@ -309,6 +309,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
pass # The disconnection can fail on mac in some cases. Ignore that.
|
||||
|
||||
self._post_reply.abort()
|
||||
self._post_reply = None
|
||||
except RuntimeError:
|
||||
self._post_reply = None # It can happen that the wrapped c++ object is already deleted.
|
||||
return
|
||||
|
@ -339,6 +340,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
pass # The disconnection can fail on mac in some cases. Ignore that.
|
||||
|
||||
self._post_reply.abort()
|
||||
self._post_reply = None
|
||||
except RuntimeError:
|
||||
self._post_reply = None # It can happen that the wrapped c++ object is already deleted.
|
||||
self.setConnectionState(ConnectionState.error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue