Skip to content

Commit 7e5d5e8

Browse files
fix: zenoh_session_multicast test (#1004)
* test: use the minimal setting * test: use a shorter timeout * fix: re-introduce the nextest timeout * test: add the debugging info * test: disable the windows ci * Fix deadlock in session::close * test: do not retry * chore: clean up all the auxiliary files --------- Co-authored-by: OlivierHecart <[email protected]>
1 parent 7cf2eee commit 7e5d5e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zenoh/src/session.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,11 @@ impl Session {
529529
self.runtime.close().await?;
530530
}
531531
let mut state = zwrite!(self.state);
532-
state.primitives.as_ref().unwrap().send_close();
533532
// clean up to break cyclic references from self.state to itself
534-
state.primitives.take();
533+
let primitives = state.primitives.take();
535534
state.queryables.clear();
535+
drop(state);
536+
primitives.as_ref().unwrap().send_close();
536537
self.alive = false;
537538
Ok(())
538539
})

0 commit comments

Comments
 (0)