ClientList: disconnect all clients in destructor
Fixes assertion failure.
This commit is contained in:
parent
88e630170e
commit
304fa5ecac
@ -33,6 +33,9 @@ class ClientList {
|
|||||||
public:
|
public:
|
||||||
ClientList(unsigned _max_size)
|
ClientList(unsigned _max_size)
|
||||||
:max_size(_max_size), size(0) {}
|
:max_size(_max_size), size(0) {}
|
||||||
|
~ClientList() {
|
||||||
|
CloseAll();
|
||||||
|
}
|
||||||
|
|
||||||
std::list<Client *>::iterator begin() {
|
std::list<Client *>::iterator begin() {
|
||||||
return list.begin();
|
return list.begin();
|
||||||
|
Loading…
Reference in New Issue
Block a user