From c5b828f809fed40cb3d095c7b77f48116b4ed8b6 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 7 Jan 2018 18:19:44 +0200 Subject: [PATCH] disable `wait_closed` dispatcher on executor. --- aiogram/utils/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/executor.py b/aiogram/utils/executor.py index 2f31875c..b1fec35e 100644 --- a/aiogram/utils/executor.py +++ b/aiogram/utils/executor.py @@ -34,7 +34,7 @@ async def _shutdown(dispatcher: Dispatcher, callback=None): if dispatcher.is_polling(): dispatcher.stop_polling() - await dispatcher.wait_closed() + # await dispatcher.wait_closed() await dispatcher.storage.close() await dispatcher.storage.wait_closed()