Remove client from list of unblocked clients when it is free'd

This commit is contained in:
Pieter Noordhuis
2011-01-17 10:03:21 +01:00
parent b8cfcea424
commit 3bcffcbe5b
4 changed files with 12 additions and 1 deletions

View File

@ -688,6 +688,7 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
redisAssert(ln != NULL);
c = ln->value;
listDelNode(server.unblocked_clients,ln);
c->flags &= ~REDIS_UNBLOCKED;
/* Process remaining data in the input buffer. */
if (c->querybuf && sdslen(c->querybuf) > 0)