Skip to content

Commit

Permalink
Fix bug closing session in client mode
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Mar 9, 2021
1 parent c799dd3 commit 059c5bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zenoh/src/net/routing/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ impl LinkStateInterceptor {
}
tables.schedule_compute_trees(self.tables.clone(), whatami::ROUTER);
}
_ => {
(whatami::ROUTER, whatami::PEER)
| (whatami::PEER, whatami::ROUTER)
| (whatami::PEER, whatami::PEER) => {
for (_, removed_node) in tables
.peers_net
.as_mut()
Expand All @@ -437,6 +439,7 @@ impl LinkStateInterceptor {
}
tables.schedule_compute_trees(self.tables.clone(), whatami::PEER);
}
_ => (),
},
Err(_) => log::error!("Unable to get whatami closing session!"),
};
Expand Down

0 comments on commit 059c5bf

Please sign in to comment.