Don't leave dangling client pointers in the process list

Former-commit-id: 5d16f519508fcb96a8803fcefa69d6c75fa174ac
This commit is contained in:
John Sully 2021-05-30 02:06:47 +00:00
parent 4f690c1f81
commit eb1bf61a58

View File

@ -1527,6 +1527,8 @@ void unlinkClient(client *c) {
c->fPendingAsyncWrite = FALSE;
}
serverTL->vecclientsProcess.erase(std::remove(serverTL->vecclientsProcess.begin(), serverTL->vecclientsProcess.end(), c), serverTL->vecclientsProcess.end());
/* Clear the tracking status. */
if (c->flags & CLIENT_TRACKING) disableTracking(c);
}