Commit c4325663 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Cleanup function should remove read/write events

parent 437eea80
...@@ -81,9 +81,7 @@ static void __redisAsyncDisconnect(redisAsyncContext *ac) { ...@@ -81,9 +81,7 @@ static void __redisAsyncDisconnect(redisAsyncContext *ac) {
redisContext *c = &(ac->c); redisContext *c = &(ac->c);
int status; int status;
/* Signal event lib to stop reading/writing */ /* Signal event lib to clean up */
if (ac->evDelRead) ac->evDelRead(ac->data);
if (ac->evDelWrite) ac->evDelWrite(ac->data);
if (ac->evCleanup) ac->evCleanup(ac->data); if (ac->evCleanup) ac->evCleanup(ac->data);
/* Execute callback with proper status */ /* Execute callback with proper status */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment