summaryrefslogtreecommitdiff
path: root/src/networking.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/networking.c')
-rw-r--r--src/networking.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/networking.c b/src/networking.c
index 8f3d79170..c8f8b65ce 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -1701,6 +1701,11 @@ int processCommandAndResetClient(client *c) {
}
if (server.current_client == NULL) deadclient = 1;
server.current_client = NULL;
+
+ /* Process clients blocked on keys, it is possible that the command
+ * we just executed made certain keys ready. */
+ if (listLength(server.ready_keys)) handleClientsBlockedOnKeys();
+
/* freeMemoryIfNeeded may flush slave output buffers. This may
* result into a slave, that may be the active client, to be
* freed. */