diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 5d248cda..03e169cd 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -762,6 +762,13 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): self._analysisQueue.resume() # printing done, put those cpu cycles to good use elif self._comm is not None and state == self._comm.STATE_PRINTING: self._analysisQueue.pause() # do not analyse files while printing + elif state == self._comm.STATE_CLOSED or state == self._comm.STATE_CLOSED_WITH_ERROR: + if self._comm is not None: + self._comm = None + + self._setProgressData(0, None, None, None) + self._setCurrentZ(None) + self._setJobData(None, None, None) self._setState(state)