Paranoia: save before exit
This commit is contained in:
parent
8a1c03dcc3
commit
26f871ae60
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ class Application(web.Application):
|
|||
)
|
||||
asyncio.run(self.handle_run())
|
||||
|
||||
# Save off config before exit
|
||||
self.config.save()
|
||||
self.database.save()
|
||||
|
||||
def stop(self, *_):
|
||||
self["running"] = False
|
||||
|
||||
|
|
Loading…
Reference in a new issue