From 417388bd7a5d4dabddd54964e577bdccad026d54 Mon Sep 17 00:00:00 2001 From: John Sully Date: Sat, 23 Nov 2019 19:01:40 -0500 Subject: [PATCH] Remove pending async writes if we're freeing the client Former-commit-id: 8b5caad51136f1ed29a9e4c01ed984f6e7ff9c4c --- src/networking.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/networking.cpp b/src/networking.cpp index 8ce3387b8..1bfe0550f 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -1269,6 +1269,7 @@ void unlinkClient(client *c) { listDelNode(g_pserver->rgthreadvar[iel].clients_pending_asyncwrite,ln); } } + fFound = g_pserver->asyncworkqueue->removeClientAsyncWrites(c) || fFound; serverAssert(fFound); c->fPendingAsyncWrite = FALSE; }