From c250d4c534633bea11e67591dd7d7d6abadb5876 Mon Sep 17 00:00:00 2001 From: Chen Lihui Date: Tue, 13 Oct 2020 14:53:46 +0800 Subject: [PATCH] Keep the original logic for setting call_finished_ Signed-off-by: Chen Lihui --- clients/roscpp/src/libros/service_server_link.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/roscpp/src/libros/service_server_link.cpp b/clients/roscpp/src/libros/service_server_link.cpp index aa789aa5c0..2f444a9ef6 100644 --- a/clients/roscpp/src/libros/service_server_link.cpp +++ b/clients/roscpp/src/libros/service_server_link.cpp @@ -376,6 +376,8 @@ bool ServiceServerLink::call(const SerializedMessage& req, SerializedMessage& re } } + info->call_finished_ = true; + if (info->exception_string_.length() > 0) { ROS_ERROR("Service call failed: service [%s] responded with an error: %s", service_name_.c_str(), info->exception_string_.c_str());