Commit 2717be63 authored by antirez's avatar antirez
Browse files

Actually use ae_flags to add AE_BARRIER if needed.

Many thanks to @Plasma that spotted this problem reviewing the code.
parent 9d797fe1
......@@ -1023,7 +1023,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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment