pipelined redis commands may also fail, handle it

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 14 years ago
parent e3d9134ae4
commit c054124217

@ -73,8 +73,8 @@ static void redis_consume(struct redis *r, int count) {
redisReply *rp;
while (count-- > 0) {
redisGetReply(r->ctx, (void **) &rp);
freeReplyObject(rp);
if (redisGetReply(r->ctx, (void **) &rp) == REDIS_OK)
freeReplyObject(rp);
}
}

Loading…
Cancel
Save