Fix redis shutdown
This commit is contained in:
parent
ba0d09ef64
commit
46b524636b
1 changed files with 2 additions and 3 deletions
|
@ -487,10 +487,9 @@ async def setup_redis_cache():
|
||||||
|
|
||||||
|
|
||||||
async def shutdown_redis():
|
async def shutdown_redis():
|
||||||
if not hasattr(self, "asyncpg_conn"):
|
|
||||||
return
|
|
||||||
global store
|
global store
|
||||||
await store._close_permanant_db_connection()
|
if hasattr(store, "asyncpg_conn"):
|
||||||
|
await store._close_permanant_db_connection()
|
||||||
|
|
||||||
|
|
||||||
store = Store()
|
store = Store()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue