Fix: Make Printer.is_ready behave as advertised

This commit is contained in:
Gina Häußge 2017-04-03 18:48:45 +02:00
parent 4d324c5239
commit e109bf0ca6

View file

@ -561,7 +561,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
return self._comm is not None and self._comm.isError()
def is_ready(self):
return self.is_operational() and not self._comm.isStreaming()
return self.is_operational() and not self.is_printing() and not self._comm.isStreaming()
def is_sd_ready(self):
if not settings().getBoolean(["feature", "sdSupport"]) or self._comm is None: