From 257b239cacd7640835427005ef19ea85652ac2fe Mon Sep 17 00:00:00 2001 From: prryplatypus <25409753+prryplatypus@users.noreply.github.com> Date: Sun, 10 Oct 2021 20:46:57 +0200 Subject: [PATCH] Configure event loop using ASGI mode too --- sanic/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sanic/app.py b/sanic/app.py index 1902a5e5..768e021f 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -1398,6 +1398,7 @@ class Sanic(BaseSanic, metaclass=TouchUpMeta): details: https://asgi.readthedocs.io/en/latest """ self.asgi = True + self._configure_event_loop() self._asgi_app = await ASGIApp.create(self, scope, receive, send) asgi_app = self._asgi_app await asgi_app()