Fixed issue where large files could no longer be sent

CURA-2286
This commit is contained in:
Jaime van Kessel 2016-09-09 15:20:08 +02:00
parent 97cf79c2e1
commit 9de064fdba

View file

@ -552,6 +552,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
if self._use_gzip:
file_name = "%s.gcode.gz" % Application.getInstance().getPrintInformation().jobName
single_string_file_data = gzip.compress(single_string_file_data.encode("utf-8"))
# Pretend that this is a response, as zipping might take a bit of time.
self._last_response_time = time()
else:
file_name = "%s.gcode" % Application.getInstance().getPrintInformation().jobName
single_string_file_data = single_string_file_data.encode("utf-8")