Skip to content

Commit

Permalink
Ensure service offers are done after(!) application registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzbichler committed Aug 19, 2014
1 parent d8f5569 commit 2dc9af4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/response-sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ class service_sample {

app_->register_event_handler(
std::bind(&service_sample::on_event, this, std::placeholders::_1));

blocked_ = true;
condition_.notify_one();
}

void start() {
Expand All @@ -61,6 +58,8 @@ class service_sample {
if (_event == vsomeip::event_type_e::REGISTERED) {
if (!is_registered_) {
is_registered_ = true;
blocked_ = true;
condition_.notify_one();
}
} else {
is_registered_ = false;
Expand Down

0 comments on commit 2dc9af4

Please sign in to comment.