mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-12-16 21:50:39 +03:00
add app close
This commit is contained in:
@@ -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!')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user