Skip to content

Commit

Permalink
Merge pull request #707 from NanXiao/patch-1
Browse files Browse the repository at this point in the history
Update src/redis-benchmark.c
  • Loading branch information
antirez committed Oct 10, 2012
2 parents 278304c + 9eb3a7b commit d10a01b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/redis-benchmark.c
Expand Up @@ -201,7 +201,10 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
if (config.requests_finished < config.requests)
config.latency[config.requests_finished++] = c->latency;
c->pending--;
if (c->pending == 0) clientDone(c);
if (c->pending == 0) {
clientDone(c);
break;
}
} else {
break;
}
Expand Down

0 comments on commit d10a01b

Please sign in to comment.