Fix redis shutdown

This commit is contained in:
phil 2024-05-18 23:12:32 +02:00
parent ba0d09ef64
commit 46b524636b

View file

@ -487,9 +487,8 @@ async def setup_redis_cache():
async def shutdown_redis(): async def shutdown_redis():
if not hasattr(self, "asyncpg_conn"):
return
global store global store
if hasattr(store, "asyncpg_conn"):
await store._close_permanant_db_connection() await store._close_permanant_db_connection()