🐛 Don't change to PAUSED state if not PAUSING

Fixes #2955
This commit is contained in:
Gina Häußge committed 2019-03-11 15:34:11 +01:00
1 parent 8668c6200a
commit e748b52098
1 file changed
+4 -1
+4 -1
View File
@@ -1280,7 +1280,10 @@ class MachineCom(object):
user=user)
def finalize():
self._changeState(self.STATE_PAUSED)
# only switch to PAUSED if we were still PAUSING, to avoid "swallowing" received resumes during
# pausing
if self._state == self.STATE_PAUSING:
self._changeState(self.STATE_PAUSED)
self.sendCommand(SendQueueMarker(finalize), part_of_job=True)
self._continue_sending()