From 26c97eafe2e59e01200834c1e40b87a978a5141b Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 5 Mar 2019 15:46:19 -0500 Subject: [PATCH] defer free Former-commit-id: de4217489c87cd8347ecdb7f4df5c3b7615330d6 --- src/networking.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/networking.cpp b/src/networking.cpp index 036581b0f..47417b060 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -1173,12 +1173,7 @@ void disconnectSlaves(void) { listRewind(server.slaves, &li); while ((ln = listNext(&li))) { client *c = (client*)listNodeValue(ln); - if (FCorrectThread(c)) { - freeClient(c); - } - else { - freeClientAsync(c); - } + freeClientAsync(c); } }