From 304fa5ecacaab9ec4dbcb5acc659cc026d264daf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Oct 2013 23:12:27 +0100 Subject: [PATCH] ClientList: disconnect all clients in destructor Fixes assertion failure. --- src/ClientList.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ClientList.hxx b/src/ClientList.hxx index e8560af78..8c6b15755 100644 --- a/src/ClientList.hxx +++ b/src/ClientList.hxx @@ -33,6 +33,9 @@ class ClientList { public: ClientList(unsigned _max_size) :max_size(_max_size), size(0) {} + ~ClientList() { + CloseAll(); + } std::list::iterator begin() { return list.begin();