Permalink
Browse files

Merge pull request #707 from NanXiao/patch-1

Update src/redis-benchmark.c
  • Loading branch information...
2 parents 278304c + 9eb3a7b commit d10a01bb6d8645f66b66e1fb3d1c52a0dd7bd8fe @antirez committed Oct 10, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/redis-benchmark.c
View
@@ -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;
}

0 comments on commit d10a01b

Please sign in to comment.