mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:15:57 +08:00
Post requests are now aborted when connection is timed out
CURA-1851
This commit is contained in:
parent
58115ce798
commit
8cc9e8cf72
@ -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…
x
Reference in New Issue
Block a user