mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Post requests are now aborted when connection is timed out
CURA-1851
This commit is contained in:
parent
58115ce798
commit
8cc9e8cf72
1 changed files with 4 additions and 0 deletions
|
@ -482,6 +482,10 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
if reply.error() == QNetworkReply.TimeoutError:
|
||||
Logger.log("w", "Received a timeout on a request to the printer")
|
||||
self._connection_state_before_timeout = self._connection_state
|
||||
# Check if we were uploading something. Abort if this is the case.
|
||||
# Some operating systems handle this themselves, others give weird issues.
|
||||
if self._post_reply:
|
||||
self._post_reply.abort()
|
||||
self.setConnectionState(ConnectionState.error)
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue