Skip to content

Commit

Permalink
Update src/service_wrapper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ottojo authored Feb 5, 2024
1 parent 513ce94 commit 1b65cdf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/service_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ void ServiceWrapper::handleRequest(const RequestPtr &request) {
continue;
}

{
auto tmpclient = node->create_client<rcl_interfaces::srv::ListParameters>(serviceName);
if (!tmpclient->service_is_ready()) {
// Service is known, but not ready.
// This happens e.g. if this is the currently selected node,
// so we still have clients for the service, but the node has died.
continue;
}
}

nodeNames.push_back(extractedNodeName);
}

Expand Down

0 comments on commit 1b65cdf

Please sign in to comment.