Commit 304fa5ec authored by Max Kellermann's avatar Max Kellermann

ClientList: disconnect all clients in destructor

Fixes assertion failure.
parent 88e63017
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment