Skip to content

Commit

Permalink
Also move orchestrator session closing code to closed phase
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 24, 2024
1 parent 27cca83 commit 3abde56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zenoh/src/net/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,14 +459,14 @@ impl TransportPeerEventHandler for RuntimeSession {

fn closing(&self) {
self.main_handler.closing();
Runtime::closing_session(self);
for handler in &self.slave_handlers {
handler.closing();
}
}

fn closed(&self) {
self.main_handler.closed();
Runtime::closed_session(self);
for handler in &self.slave_handlers {
handler.closed();
}
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/net/runtime/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ impl Runtime {
}
}

pub(super) fn closing_session(session: &RuntimeSession) {
pub(super) fn closed_session(session: &RuntimeSession) {
if session.runtime.is_closed() {
return;
}
Expand Down

0 comments on commit 3abde56

Please sign in to comment.