summaryrefslogtreecommitdiff
path: root/implementation
diff options
context:
space:
mode:
authorJuergen Gehring <juergen.gehring@bmw.de>2018-05-22 02:56:43 -0700
committerJuergen Gehring <juergen.gehring@bmw.de>2018-05-22 02:56:43 -0700
commita2b23e379fe383103cdf38cab7547a1e7451b9e2 (patch)
treeb7026847e02bf764c21b44d572a5bcee13fc9c96 /implementation
parent3fe1afd0de1fd7c167d89ca75702e4627357ef5e (diff)
downloadvSomeIP-a2b23e379fe383103cdf38cab7547a1e7451b9e2.tar.gz
vsomeip 2.10.152.10.15
Diffstat (limited to 'implementation')
-rw-r--r--implementation/routing/src/routing_manager_impl.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/implementation/routing/src/routing_manager_impl.cpp b/implementation/routing/src/routing_manager_impl.cpp
index 33e4e46..add0fb9 100644
--- a/implementation/routing/src/routing_manager_impl.cpp
+++ b/implementation/routing/src/routing_manager_impl.cpp
@@ -1575,7 +1575,24 @@ bool routing_manager_impl::deliver_notification(
if (its_event) {
if (!its_event->is_provided()) {
if (its_event->get_subscribers().size() == 0) {
- return true; // as there is nothing to do
+ // no subscribers for this specific event / check subscriptions
+ // to other events of the event's eventgroups
+ bool cache_event = false;
+ for (const auto eg : its_event->get_eventgroups()) {
+ std::shared_ptr<eventgroupinfo> egi = find_eventgroup(_service, _instance, eg);
+ for (const auto &e : egi->get_events()) {
+ cache_event = (e->get_subscribers().size() > 0);
+ if (cache_event) {
+ break;
+ }
+ }
+ if (cache_event) {
+ break;
+ }
+ }
+ if (!cache_event) {
+ return true; // as there is nothing to do
+ }
}
const uint32_t its_length(utility::get_payload_size(_data, _length));
std::shared_ptr<payload> its_payload