FSM storage closing now is async

This commit is contained in:
Alex Root Junior 2017-10-18 22:32:21 +03:00
parent 84c8548ceb
commit 17871155ee
4 changed files with 4 additions and 4 deletions

View file

@ -143,7 +143,7 @@ async def on_shutdown(app):
await bot.delete_webhook()
# Close Redis connection.
dp.storage.close()
await dp.storage.close()
await dp.storage.wait_closed()