mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add try-excepts for signal disconnections
This commit is contained in:
parent
ba12d9dff8
commit
e9462b17c8
1 changed files with 8 additions and 2 deletions
|
@ -1176,8 +1176,14 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
# Remove cached post request items.
|
||||
del self._material_post_objects[id(reply)]
|
||||
elif "print_job" in reply_url:
|
||||
reply.uploadProgress.disconnect(self._onUploadProgress)
|
||||
reply.finished.disconnect(self._onUploadFinished)
|
||||
try:
|
||||
reply.uploadProgress.disconnect(self._onUploadProgress)
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
reply.finished.disconnect(self._onUploadFinished)
|
||||
except:
|
||||
pass
|
||||
Logger.log("d", "Uploading of print succeeded after %s", time() - self._send_gcode_start)
|
||||
# Only reset the _post_reply if it was the same one.
|
||||
if reply == self._post_reply:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue