Always set finish flag when finalizing post_reply

CURA-4398
This commit is contained in:
Lipu Fei 2017-10-09 12:38:16 +02:00
parent daad5a3a97
commit f10397acf9

View file

@ -527,12 +527,12 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._last_request_time = time()
def _finalizePostReply(self):
if self._post_reply is None:
return
# Indicate uploading was finished (so another file can be send)
self._write_finished = True
if self._post_reply is None:
return
try:
try:
self._post_reply.uploadProgress.disconnect(self._onUploadProgress)