From f6597e8fae436d2bc490f61c45af521c19604552 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 13 Jun 2021 12:58:24 +0200 Subject: [PATCH] Await closing of redis connection --- keycloak_collective_portal/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keycloak_collective_portal/main.py b/keycloak_collective_portal/main.py index 2b89ebe..0628733 100644 --- a/keycloak_collective_portal/main.py +++ b/keycloak_collective_portal/main.py @@ -52,7 +52,7 @@ async def startup_event(): @app.on_event("shutdown") async def shutdown_event(): - app.state.redis.close() + await app.state.redis.close() app.add_middleware(SessionMiddleware, secret_key=APP_SECRET_KEY)