diff --git a/zenoh/src/api/session.rs b/zenoh/src/api/session.rs index 15b7fb4d7..21144a4c7 100644 --- a/zenoh/src/api/session.rs +++ b/zenoh/src/api/session.rs @@ -1574,6 +1574,8 @@ impl SessionInner { }, }), }); + } else { + drop(state); } } else { drop(state);