From 3a5bf75ede389981f1e63b305dad431c8ccc91ea Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 28 Feb 2018 18:03:51 +0100 Subject: [PATCH] Actually use ae_flags to add AE_BARRIER if needed. Many thanks to @Plasma that spotted this problem reviewing the code. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index 1c0ac7ff5..51c239fc8 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1058,7 +1058,7 @@ int handleClientsWithPendingWrites(void) { { ae_flags |= AE_BARRIER; } - if (aeCreateFileEvent(server.el, c->fd, AE_WRITABLE, + if (aeCreateFileEvent(server.el, c->fd, ae_flags, sendReplyToClient, c) == AE_ERR) { freeClientAsync(c);