aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/hiredis/async.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/hiredis/async.c b/contrib/hiredis/async.c
index 84c43585c..342b4838a 100644
--- a/contrib/hiredis/async.c
+++ b/contrib/hiredis/async.c
@@ -310,6 +310,7 @@ static void __redisAsyncFree(redisAsyncContext *ac) {
if (c->flags & REDIS_FREEING) {
ac->onDisconnect(ac,REDIS_OK,ac->disconnectCbdata);
} else {
+ c->flags |= REDIS_FREEING;
ac->onDisconnect(ac,(ac->err == 0) ? REDIS_OK : REDIS_ERR,ac->disconnectCbdata);
}
}