From 4c705334fa2e19155d7949286f0ad3857921f35a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 5 Jan 2014 02:07:19 +0100 Subject: ClientList: use "delete" instead of Client::Close() Client::Close() installs a TimeoutMonitor, which is not something we should do during shutdown. --- src/ClientList.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ClientList.cxx b/src/ClientList.cxx index 37e6f1289..c530ff54a 100644 --- a/src/ClientList.cxx +++ b/src/ClientList.cxx @@ -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); } -- cgit v1.2.3