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

Client::Close() installs a TimeoutMonitor, which is not something we
should do during shutdown.
This commit is contained in:
Max Kellermann 2014-01-05 02:07:19 +01:00
parent c12da599b9
commit 4c705334fa

View File

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