Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 16, 2024
1 parent 7bd8690 commit 3bfaa21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions implementation/routing/src/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,7 @@ event::get_filtered_subscribers(bool _force) {

if (filters_.empty()) {

bool must_forward = (type_ != event_type_e::ET_FIELD
|| _force
|| epsilon_change_func_(its_payload, its_payload_update));
bool must_forward = _force || epsilon_change_func_(its_payload, its_payload_update);

if (must_forward)
return its_subscribers;
Expand All @@ -704,10 +702,7 @@ event::get_filtered_subscribers(bool _force) {
its_filtered_subscribers.insert(s);
} else {
if (is_allowed == 0xff) {
is_allowed = (type_ != event_type_e::ET_FIELD
|| _force
|| epsilon_change_func_(its_payload, its_payload_update)
? 0x01 : 0x00);
is_allowed = (_force || epsilon_change_func_(its_payload, its_payload_update) ? 0x01 : 0x00);
}

if (is_allowed == 0x01)
Expand Down
2 changes: 1 addition & 1 deletion implementation/routing/src/routing_manager_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void routing_manager_base::register_event(client_t _client,
// Create a new callback for this client if filter interval is used
register_debounce(its_debounce, _client, its_event);
} else {
if (!_is_shadow && is_routing_manager()) {
if ((_type != vsomeip_v3::event_type_e::ET_EVENT) && !_is_shadow && is_routing_manager()) {
_epsilon_change_func = [](const std::shared_ptr<payload> &_old,
const std::shared_ptr<payload> &_new) {
bool is_change = (_old->get_length() != _new->get_length());
Expand Down

0 comments on commit 3bfaa21

Please sign in to comment.