From 59c04bfb254b8b6b328b0ea753c5881eba46e785 Mon Sep 17 00:00:00 2001 From: Oussama Teffahi Date: Tue, 10 Dec 2024 15:40:43 +0100 Subject: [PATCH] Fix deadlock --- zenoh/src/api/session.rs | 2 ++ 1 file changed, 2 insertions(+) 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);