1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user