Browse Source

pipelined redis commands may also fail, handle it

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 14 years ago
parent
commit
c054124217
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/redis.c

+ 2
- 2
daemon/redis.c View File

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


Loading…
Cancel
Save