diff --git a/src/module.c b/src/module.c index 9f9c5d15c..b932a8da3 100644 --- a/src/module.c +++ b/src/module.c @@ -3694,7 +3694,7 @@ void moduleHandleBlockedClients(void) { /* Put the client in the list of clients that need to write * if there are pending replies here. This is needed since * during a non blocking command the client may receive output. */ - if (clientHasPendingReplies(c, TRUE) && + if (clientHasPendingReplies(c, FALSE) && !(c->flags & CLIENT_PENDING_WRITE)) { c->flags |= CLIENT_PENDING_WRITE;