aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 23:12:27 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 23:12:45 +0100
commit304fa5ecacaab9ec4dbcb5acc659cc026d264daf (patch)
tree3cb0a469a1d94f19796e9779e657319bfb3370ef
parent88e630170ef95f765fdeb95639080052661a1a81 (diff)
downloadmpd-304fa5ecacaab9ec4dbcb5acc659cc026d264daf.tar.gz
mpd-304fa5ecacaab9ec4dbcb5acc659cc026d264daf.tar.xz
mpd-304fa5ecacaab9ec4dbcb5acc659cc026d264daf.zip
ClientList: disconnect all clients in destructor
Fixes assertion failure.
-rw-r--r--src/ClientList.hxx3
1 files changed, 3 insertions, 0 deletions
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<Client *>::iterator begin() {
return list.begin();