forked from M-Labs/artiq
gui: do 60114447
properly
This commit is contained in:
parent
b64cea0a79
commit
72da5cc0de
|
@ -70,14 +70,15 @@ class StateManager(TaskObject):
|
|||
pyon.store_file(self.filename, data)
|
||||
|
||||
async def _do(self):
|
||||
try:
|
||||
try:
|
||||
while True:
|
||||
await asyncio.sleep(self.autosave_period)
|
||||
self.save()
|
||||
finally:
|
||||
self.save()
|
||||
except asyncio.CancelledError:
|
||||
pass
|
||||
except:
|
||||
logger.error("Uncaught exception attempting to save state",
|
||||
exc_info=True)
|
||||
finally:
|
||||
self.save()
|
||||
|
|
Loading…
Reference in New Issue