Only try to record recovery data if a print was ongoing

This commit is contained in:
Gina Häußge committed 2016-02-16 10:03:02 +01:00
1 parent 1ea0cf9213
commit beb5850361
1 file changed
+2 -1
+2 -1
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()