cloud_dispatcher patch

This commit is contained in:
2021-09-01 22:43:40 +03:00
parent 00edfa4ef0
commit f82b6c12ee
3 changed files with 9 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ CloudServer::CloudServer(DispatcherClient * c, const PIByteArray & sname) : serv
setName(sname.toHex());
server_uuid = sname;
CONNECTL(c, dataReadedServer, ([this](uint id, PIByteArray & ba){
last_ping.reset();
DispatcherClient * cl = index_clients.value(id, nullptr);
if (cl) cl->sendData(ba);
}));