Prevent erroneously setting CLIENT_PENDING_WRITE when we have async writes

This commit is contained in:
John Sully 2019-02-19 01:37:16 -05:00
parent 3f4315125c
commit c1031e5f98

View File

@ -3694,7 +3694,7 @@ void moduleHandleBlockedClients(void) {
/* Put the client in the list of clients that need to write /* Put the client in the list of clients that need to write
* if there are pending replies here. This is needed since * if there are pending replies here. This is needed since
* during a non blocking command the client may receive output. */ * 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))
{ {
c->flags |= CLIENT_PENDING_WRITE; c->flags |= CLIENT_PENDING_WRITE;