Lost task factory setup in webhook executor.

This commit is contained in:
Alex Root Junior 2017-09-17 02:16:40 +03:00
parent a030be2d15
commit d2694a4d3b

View file

@ -66,6 +66,8 @@ def start_webhook(dispatcher, webhook_path, *, loop=None, skip_updates=None, on_
if loop is None: if loop is None:
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
loop.set_task_factory(context.task_factory)
app = get_new_configured_app(dispatcher, webhook_path) app = get_new_configured_app(dispatcher, webhook_path)
app['_startup_callback'] = on_startup app['_startup_callback'] = on_startup
app['_shutdown_callback'] = on_shutdown app['_shutdown_callback'] = on_shutdown