Skip to content

Commit

Permalink
need to wait for reconnect/new messages to arrive when failure happens
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
  • Loading branch information
Chen Lihui committed Oct 12, 2020
1 parent b33f248 commit 1bc6761
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions clients/roscpp/src/libros/service_server_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,8 @@ void ServiceServerLink::onResponse(const ConnectionPtr& conn, const boost::share
(void)conn;
ROS_ASSERT(conn == connection_);

if (!success) {
{
boost::mutex::scoped_lock lock(call_queue_mutex_);
current_call_->finished_ = true;
current_call_->finished_condition_.notify_all();
current_call_->call_finished_ = true;
}
if (!success)
return;
}

{
boost::mutex::scoped_lock queue_lock(call_queue_mutex_);
Expand Down

0 comments on commit 1bc6761

Please sign in to comment.