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