Copy error to redisAsyncContext when finding subscribe cb
This commit is contained in:
parent
e0200b797b
commit
b044eaa6a7
1
async.c
1
async.c
@ -535,6 +535,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
|
|||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
oom:
|
oom:
|
||||||
__redisSetError(&(ac->c), REDIS_ERR_OOM, "Out of memory");
|
__redisSetError(&(ac->c), REDIS_ERR_OOM, "Out of memory");
|
||||||
|
__redisAsyncCopyError(ac);
|
||||||
return REDIS_ERR;
|
return REDIS_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user