From c43256633cd0c132d545708d1ba778cd2a5272c3 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 1 Nov 2010 09:53:18 +0100 Subject: Cleanup function should remove read/write events --- async.c | 4 +--- 1 file changed, 1 insertion(+), 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 */ -- cgit v1.2.3