This commit is contained in:
2024-03-25 21:31:41 +03:00
parent 2db9440a38
commit 77c8681b43

View File

@@ -15,13 +15,7 @@ CloudServer::CloudServer(DispatcherClient * c, const PIByteArray & sname): serve
}
CloudServer::~CloudServer() {
for (auto c: clients) {
c->close();
}
for (auto & c: connects)
c.disconnect();
}
CloudServer::~CloudServer() {}
PIByteArray CloudServer::serverUUID() const {
@@ -73,6 +67,10 @@ void CloudServer::close() {
void CloudServer::stop() {
for (auto & c: connects)
c.disconnect();
for (auto c: clients)
c->close();
server->stop();
}