Commit 4c705334 authored by Max Kellermann's avatar Max Kellermann

ClientList: use "delete" instead of Client::Close()

Client::Close() installs a TimeoutMonitor, which is not something we should do during shutdown.
parent c12da599
......@@ -40,8 +40,14 @@ ClientList::Remove(Client &client)
void
ClientList::CloseAll()
{
while (!list.empty())
list.front()->Close();
while (!list.empty()) {
delete list.front();
list.pop_front();
#ifndef NDEBUG
--size;
#endif
}
assert(size == 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment