🐛 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:
Gina Häußge committed 2019-03-12 12:12:24 +01:00
1 parent f020fc1bc6
commit 32050c31ae
1 file changed
+1 -1
+1 -1
View File
@@ -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()