From 5656a917c7b8dc20374754a3c6e6e90f55aa76c4 Mon Sep 17 00:00:00 2001 From: John Sully Date: Wed, 3 Apr 2019 00:11:34 -0400 Subject: [PATCH] Fix cluster test failure (not real issue) Former-commit-id: 161d3a35ff2be2aa761f6fb0167dfc4aac4251c6 --- src/networking.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/networking.cpp b/src/networking.cpp index 036dca456..11ac04054 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -2443,7 +2443,10 @@ NULL if (c == client) { close_this_client = 1; } else { - freeClientAsync(client); + if (FCorrectThread(client)) + freeClient(client); + else + freeClientAsync(client); } killed++; }