From a1e8694073e72b654fbaeafbfc5b1e44549135f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 4 Mar 2019 17:29:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Don't=20change=20to=20PRINTING?= =?UTF-8?q?=20state=20on=20resume=20if=20not=20RESUMING?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #2955 --- src/octoprint/util/comm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 6820defb4..9541113de 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1316,7 +1316,10 @@ class MachineCom(object): part_of_job=True, tags=tags | {"trigger:comm.set_pause", "trigger:resume"}) - self.sendCommand(SendQueueMarker(lambda: self._changeState(self.STATE_PRINTING)), part_of_job=True) + def finalize(): + if self._state == self.STATE_RESUMING: + self._changeState(self.STATE_PRINTING) + self.sendCommand(SendQueueMarker(finalize), part_of_job=True) # now make sure we actually do something, up until now we only filled up the queue self._continue_sending()