Fix redis shutdown

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

View file

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