Skip to content

Commit

Permalink
set call_finished_ with true for each call inside callFinished (#2074)
Browse files Browse the repository at this point in the history
* set call_finished_ with true for each call inside callFinished

and also set current_call flags when failure happens

Signed-off-by: Chen Lihui <lihui.chen@sony.com>

* Update based on review

Co-authored-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Chen Lihui <lihui.chen@sony.com>

* set the flag with true again even if it is true already

Signed-off-by: Chen Lihui <lihui.chen@sony.com>

Co-authored-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
  • Loading branch information
2 people authored and jacobperron committed Oct 22, 2020
1 parent 556a283 commit c08db3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/roscpp/src/libros/service_server_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ void ServiceServerLink::callFinished()

current_call_->finished_ = true;
current_call_->finished_condition_.notify_all();
current_call_->call_finished_ = true;

saved_call = current_call_;
current_call_ = CallInfoPtr();
Expand Down

0 comments on commit c08db3c

Please sign in to comment.