From c1031e5f988a37b00e9b3342e78b662dbec62ca0 Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 19 Feb 2019 01:37:16 -0500 Subject: [PATCH] Prevent erroneously setting CLIENT_PENDING_WRITE when we have async writes --- src/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;