From 263980d06e72b98ccb1f1eb3a1f3f36d1a72db91 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Thu, 12 Sep 2024 13:02:55 +0200 Subject: [PATCH] fix: fix unstable --- zenoh/src/api/session.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zenoh/src/api/session.rs b/zenoh/src/api/session.rs index 199989692d..6a939e9fa3 100644 --- a/zenoh/src/api/session.rs +++ b/zenoh/src/api/session.rs @@ -1077,11 +1077,14 @@ impl SessionInner { let mut state = zwrite!(self.state); state.queryables.clear(); state.subscribers.clear(); - state.matching_listeners.clear(); state.liveliness_subscribers.clear(); state.local_resources.clear(); state.remote_resources.clear(); - state.tokens.clear(); + #[cfg(feature = "unstable")] + { + state.tokens.clear(); + state.matching_listeners.clear(); + } Ok(()) }) }