mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 01:15:31 +00:00
Fix FSM storage and filter.
This commit is contained in:
parent
3fb0a23db7
commit
b4d8ac2c0a
4 changed files with 7 additions and 7 deletions
|
|
@ -122,10 +122,5 @@ async def process_gender(message: types.Message):
|
|||
await state.finish()
|
||||
|
||||
|
||||
async def shutdown(dispatcher: Dispatcher):
|
||||
await dispatcher.storage.close()
|
||||
await dispatcher.storage.wait_closed()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
executor.start_polling(dp, loop=loop, skip_updates=True, on_shutdown=shutdown)
|
||||
executor.start_polling(dp, loop=loop, skip_updates=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue