Skip to content

Commit

Permalink
Only update matching listener status for last remote subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
oteffahi committed Dec 10, 2024
1 parent 59c04bf commit 86fcca0
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions zenoh/src/api/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1574,21 +1574,31 @@ impl SessionInner {
},
}),
});
#[cfg(feature = "unstable")]
{
let state = zread!(self.state);
self.update_matching_status(
&state,
&sub_state.key_expr,
MatchingStatusType::Subscribers,
false,
)
}
} else {
drop(state);
}
} else {
drop(state);
}
#[cfg(feature = "unstable")]
{
let state = zread!(self.state);
self.update_matching_status(
&state,
&sub_state.key_expr,
MatchingStatusType::Subscribers,
false,
)
#[cfg(feature = "unstable")]
{
let state = zread!(self.state);
self.update_matching_status(
&state,
&sub_state.key_expr,
MatchingStatusType::Subscribers,
false,
)
}
}
}
SubscriberKind::LivelinessSubscriber => {
Expand Down

0 comments on commit 86fcca0

Please sign in to comment.