Remove pending async writes if we're freeing the client

Former-commit-id: 8b5caad51136f1ed29a9e4c01ed984f6e7ff9c4c
This commit is contained in:
John Sully 2019-11-23 19:01:40 -05:00
parent 87ca381ea2
commit 30d85b35e2

View File

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