summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:53:18 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 09:53:18 +0100
commitc43256633cd0c132d545708d1ba778cd2a5272c3 (patch)
tree95c29cf9b512824b4510f5074b7eea44085bb4f8
parent437eea80fce125b800142bd00ab701000f78e57e (diff)
Cleanup function should remove read/write events
-rw-r--r--async.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/async.c b/async.c
index 31e7f15..cf637a3 100644
--- a/async.c
+++ b/async.c
@@ -81,9 +81,7 @@ static void __redisAsyncDisconnect(redisAsyncContext *ac) {
redisContext *c = &(ac->c);
int status;
- /* Signal event lib to stop reading/writing */
- if (ac->evDelRead) ac->evDelRead(ac->data);
- if (ac->evDelWrite) ac->evDelWrite(ac->data);
+ /* Signal event lib to clean up */
if (ac->evCleanup) ac->evCleanup(ac->data);
/* Execute callback with proper status */