mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
🐛 Use the Executor's event loop
Instead of creating a new one. So that the event loop can actually be passed to `Executor()` and used in the `Executor().start_polling()` method.
This commit is contained in:
parent
fe48a4a014
commit
a036adc046
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ class Executor:
|
|||
:param timeout:
|
||||
"""
|
||||
self._prepare_polling()
|
||||
loop = asyncio.get_event_loop()
|
||||
loop: asyncio.AbstractEventLoop = self.loop
|
||||
|
||||
try:
|
||||
loop.run_until_complete(self._startup_polling())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue