Skip to content

Commit

Permalink
fix: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Jun 10, 2024
1 parent 3d4375e commit f101b44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zenoh/src/api/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,7 @@ impl Primitives for SessionClone {

impl Drop for Session {
fn drop(&mut self) {
// Use clone inner session, as it will be rewrapped in ManuallyDrop inside Session::close
let _ = ManuallyDrop::into_inner(self.clone().0).close().wait();
}
}
Expand Down

0 comments on commit f101b44

Please sign in to comment.