diff --git a/src/networking.cpp b/src/networking.cpp index c622dcc55..85140547e 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -295,9 +295,6 @@ int prepareClientToWrite(client *c) { /* If CLIENT_CLOSE_ASAP flag is set, we need not write anything. */ if (c->flags & CLIENT_CLOSE_ASAP) return C_ERR; - /* If CLIENT_CLOSE_ASAP flag is set, we need not write anything. */ - if (c->flags & CLIENT_CLOSE_ASAP) return C_ERR; - /* CLIENT REPLY OFF / SKIP handling: don't send replies. */ if (flags & (CLIENT_REPLY_OFF|CLIENT_REPLY_SKIP)) return C_ERR; @@ -1984,9 +1981,6 @@ int handleClientsWithPendingWrites(int iel, int aof_state) { /* Don't write to clients that are going to be closed anyway. */ if (c->flags & CLIENT_CLOSE_ASAP) continue; - /* Don't write to clients that are going to be closed anyway. */ - if (c->flags & CLIENT_CLOSE_ASAP) continue; - /* Try to write buffers to the client socket. */ if (writeToClient(c,0) == C_ERR) {