diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 09:53:18 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 09:53:18 +0100 |
commit | c43256633cd0c132d545708d1ba778cd2a5272c3 (patch) | |
tree | 95c29cf9b512824b4510f5074b7eea44085bb4f8 | |
parent | 437eea80fce125b800142bd00ab701000f78e57e (diff) |
Cleanup function should remove read/write events
-rw-r--r-- | async.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 */ |