Skip to content

Commit

Permalink
Replace clear_connect_callbacks with _deregister_connect_callback (#2955
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dvora-h committed Sep 21, 2023
1 parent ded9f7c commit 1b370da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/asyncio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ async def __aexit__(self, exc_type, exc_value, traceback):

def __del__(self):
if self.connection:
self.connection.clear_connect_callbacks()
self.connection._deregister_connect_callback(self.on_connect)

async def aclose(self):
# In case a connection property does not yet exist
Expand Down

0 comments on commit 1b370da

Please sign in to comment.