1
This commit is contained in:
@@ -15,13 +15,7 @@ CloudServer::CloudServer(DispatcherClient * c, const PIByteArray & sname): serve
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CloudServer::~CloudServer() {
|
CloudServer::~CloudServer() {}
|
||||||
for (auto c: clients) {
|
|
||||||
c->close();
|
|
||||||
}
|
|
||||||
for (auto & c: connects)
|
|
||||||
c.disconnect();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PIByteArray CloudServer::serverUUID() const {
|
PIByteArray CloudServer::serverUUID() const {
|
||||||
@@ -73,6 +67,10 @@ void CloudServer::close() {
|
|||||||
|
|
||||||
|
|
||||||
void CloudServer::stop() {
|
void CloudServer::stop() {
|
||||||
|
for (auto & c: connects)
|
||||||
|
c.disconnect();
|
||||||
|
for (auto c: clients)
|
||||||
|
c->close();
|
||||||
server->stop();
|
server->stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user