Skip to content

Commit

Permalink
fix multiple unblock for clientsArePaused()
Browse files Browse the repository at this point in the history
  • Loading branch information
soloestoy committed Sep 3, 2018
1 parent febe102 commit e3dfd8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e3dfd8c

Please sign in to comment.