diff options
author | Max Kellermann <max@duempel.org> | 2013-10-30 23:12:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-30 23:12:45 +0100 |
commit | 304fa5ecacaab9ec4dbcb5acc659cc026d264daf (patch) | |
tree | 3cb0a469a1d94f19796e9779e657319bfb3370ef | |
parent | 88e630170ef95f765fdeb95639080052661a1a81 (diff) |
ClientList: disconnect all clients in destructor
Fixes assertion failure.
-rw-r--r-- | src/ClientList.hxx | 3 |
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(); |