From 32050c31ae61ccbe877bd08de74423999af4b18e 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=20Only=20process=20pause=20if=20we?= =?UTF-8?q?=20aren't=20already=20pausing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also don't process a pause if we are cancelling. "isPrinting" is too broad here, so we use explicit states. --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 9541113de..e90c49c7f 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1324,7 +1324,7 @@ class MachineCom(object): # now make sure we actually do something, up until now we only filled up the queue self._continue_sending() - elif pause and self.isPrinting(): + elif pause and self._state in (self.STATE_PRINTING, self.STATE_STARTING, self.STATE_RESUMING): if not self._pauseWaitStartTime: self._pauseWaitStartTime = time.time()