add app close

This commit is contained in:
2022-08-16 23:50:33 +03:00
parent fff8042242
commit 1c67c28ca3
2 changed files with 9 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ async def bot_shutdown() -> None:
# Close DB connection (if used)
await dispatcher.storage.close()
await dispatcher.storage.wait_closed()
app.close()
logger.warning('Bye!')