Skip to content

Commit 1b370da

Browse files
authored
Replace clear_connect_callbacks with _deregister_connect_callback (#2955)
1 parent ded9f7c commit 1b370da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/asyncio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ async def __aexit__(self, exc_type, exc_value, traceback):
783783

784784
def __del__(self):
785785
if self.connection:
786-
self.connection.clear_connect_callbacks()
786+
self.connection._deregister_connect_callback(self.on_connect)
787787

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

0 commit comments

Comments
 (0)