Only try to record recovery data if a print was ongoing

This commit is contained in:
Gina Häußge 2016-02-16 10:03:02 +01:00
parent 1ea0cf9213
commit beb5850361

View file

@ -313,7 +313,8 @@ class MachineCom(object):
self._callback.on_comm_sd_files([])
if self._currentFile is not None:
self._recordFilePosition()
if self.isBusy():
self._recordFilePosition()
self._currentFile.close()
oldState = self.getStateString()