From 69897f5f30398f313497a695344aa9ed08919441 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 9 Dec 2015 23:06:44 +0100 Subject: [PATCH] unlinkClient(): clear flags according to ops performed. --- src/networking.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/networking.c b/src/networking.c index 079c1c3e..74de7e92 100644 --- a/src/networking.c +++ b/src/networking.c @@ -694,6 +694,7 @@ void unlinkClient(client *c) { ln = listSearchKey(server.clients_pending_write,c); serverAssert(ln != NULL); listDelNode(server.clients_pending_write,ln); + c->flags &= ~CLIENT_PENDING_WRITE; } /* When client was just unblocked because of a blocking operation, @@ -702,6 +703,7 @@ void unlinkClient(client *c) { ln = listSearchKey(server.unblocked_clients,c); serverAssert(ln != NULL); listDelNode(server.unblocked_clients,ln); + c->flags &= ~CLIENT_UNBLOCKED; } }