mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update dispatcher.py
This commit is contained in:
parent
40621eb494
commit
81852cdda2
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,7 @@ class Dispatcher(Router):
|
|||
finally:
|
||||
loggers.dispatcher.info("Polling stopped")
|
||||
try:
|
||||
await self.emit_shutdown(bot=bots[-1], **workflow_data)
|
||||
await self.emit_shutdown(bots[-1], **workflow_data)
|
||||
finally:
|
||||
if close_bot_session:
|
||||
await asyncio.gather(*(bot.session.close() for bot in bots))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue