From e3dfd8c811e12b6b1d3f7febf732b23fdaab497b Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Mon, 6 Nov 2017 16:21:35 +0800 Subject: [PATCH] fix multiple unblock for clientsArePaused() --- src/networking.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/networking.c b/src/networking.c index 27c69530..36228d6f 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2126,9 +2126,9 @@ int clientsArePaused(void) { while ((ln = listNext(&li)) != NULL) { c = listNodeValue(ln); - /* Don't touch slaves and blocked clients. The latter pending - * requests be processed when unblocked. */ - if (c->flags & (CLIENT_SLAVE|CLIENT_BLOCKED)) continue; + /* Don't touch slaves and blocked or unblocked clients. + * The latter pending requests be processed when unblocked. */ + if (c->flags & (CLIENT_SLAVE|CLIENT_BLOCKED|CLIENT_UNBLOCKED)) continue; c->flags |= CLIENT_UNBLOCKED; listAddNodeTail(server.unblocked_clients,c); }