summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJuergen Gehring <juergen.gehring@bmw.de>2017-03-07 05:30:55 -0800
committerJuergen Gehring <juergen.gehring@bmw.de>2017-03-07 05:30:55 -0800
commitc35b82a9459b866ab22bc3cabe274c7b36bca290 (patch)
treeed1b4c031345ef7f13ff061cd3d3cbd9d2f9afe8 /examples
parent199b12ef4b4abe120624a757fcbe8f8cd54c3712 (diff)
downloadvSomeIP-c35b82a9459b866ab22bc3cabe274c7b36bca290.tar.gz
vSomeIP 2.6.12.6.1
Diffstat (limited to 'examples')
-rw-r--r--examples/subscribe-sample.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/subscribe-sample.cpp b/examples/subscribe-sample.cpp
index 2526112..5350263 100644
--- a/examples/subscribe-sample.cpp
+++ b/examples/subscribe-sample.cpp
@@ -55,6 +55,8 @@ public:
SAMPLE_EVENT_ID,
its_groups,
true);
+ app_->subscribe(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID, SAMPLE_EVENTGROUP_ID);
+
return true;
}
@@ -87,10 +89,6 @@ public:
<< "] is "
<< (_is_available ? "available." : "NOT available.")
<< std::endl;
-
- if (_is_available && SAMPLE_SERVICE_ID == _service && SAMPLE_INSTANCE_ID == _instance) {
- app_->subscribe(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID, SAMPLE_EVENTGROUP_ID);
- }
}
void on_message(const std::shared_ptr<vsomeip::message> &_response) {