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); } }