From e19be6e738321b6a60caed205eadddec9343bb52 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 20 Nov 2016 17:52:55 +0000 Subject: [PATCH] [Fix] Another fix for brain-damaged hiredis --- contrib/hiredis/async.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.39.5