🐛 Only process pause if we aren't already pausing
Also don't process a pause if we are cancelling. "isPrinting" is too broad here, so we use explicit states.
This commit is contained in:
1 parent
f020fc1bc6
commit
32050c31ae
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user