This commit is contained in:
Lasan Mahaliyana
2026-02-10 18:33:51 +05:30
parent 98675edaca
commit 1eb2e5360a
2 changed files with 22 additions and 2 deletions
@@ -27,7 +27,14 @@ void Server::onResolveServiceReply(const int32_t& interface,
const std::string& address, const uint16_t& port,
const std::vector<std::vector<uint8_t>>& txt, const uint32_t& flags,
const sdbus::Error* error) {
if (error != nullptr && error->isValid()) {
LOG(ERROR) << __func__ << ": ResolveService failed with error '"
<< error->getName() << "' message '" << error->getMessage()
<< "'";
return;
}
LOG(INFO) << "Resolved reply received";
NsdServiceInfo info;
info.SetServiceName(name);