mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
ALso abort if the network is not accesible
CURA-1851
This commit is contained in:
parent
1d6732273c
commit
42bbf2b4c8
1 changed files with 9 additions and 0 deletions
|
@ -237,6 +237,15 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
self._connection_message = Message(i18n_catalog.i18nc("@info:status",
|
||||
"The connection with the network was lost."))
|
||||
self._connection_message.show()
|
||||
# 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()
|
||||
try:
|
||||
self._post_reply.uploadProgress.disconnect(self._onUploadProgress)
|
||||
except TypeError:
|
||||
pass # The disconnection can fail on mac in some cases. Ignore that.
|
||||
self._progress_message.hide()
|
||||
return
|
||||
|
||||
# Check that we aren't in a timeout state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue