Commit d10a01bb authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #707 from NanXiao/patch-1

Update src/redis-benchmark.c
parents 278304cc 9eb3a7bc
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment