From e8b330f4ffdc2256c791d0f9527f6968be836ae4 Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 25 May 2021 16:57:49 +0000 Subject: [PATCH] Fix duplicate checks (resolve PR comments) Former-commit-id: 02f7efd9d4804b71765ae11d7fcf7adca46af750 --- src/networking.cpp | 6 ------ 1 file changed, 6 deletions(-) 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) {