ClientList: disconnect all clients in destructor

Fixes assertion failure.
This commit is contained in:
Max Kellermann 2013-10-30 23:12:27 +01:00
parent 88e630170e
commit 304fa5ecac

View File

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