server.current_client fix and minor refactoring.

Thanks to @codeslinger (Toby DiPasquale) for identifying the issue.

Related to issue #2409.
This commit is contained in:
antirez
2015-02-26 18:31:06 +01:00
parent 832b0c7cce
commit 7e6b4ea67b
2 changed files with 11 additions and 17 deletions

View File

@ -118,9 +118,7 @@ void processUnblockedClients(void) {
/* Process remaining data in the input buffer. */
if (c->querybuf && sdslen(c->querybuf) > 0) {
server.current_client = c;
processInputBuffer(c);
server.current_client = NULL;
}
}
}