We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d956ffd commit d4b065dCopy full SHA for d4b065d
zenoh/src/api/session.rs
@@ -3272,7 +3272,7 @@ impl Closee for Arc<SessionInner> {
3272
// will be stabilized.
3273
let mut state = zwrite!(self.state);
3274
let _matching_listeners = std::mem::take(&mut state.matching_listeners);
3275
- state.closing_callbacks.close();
+ let _closing_callbacks = std::mem::take(&mut state.closing_callbacks);
3276
drop(state);
3277
}
3278
@@ -3310,8 +3310,10 @@ impl ClosingCallbackList {
3310
self.callbacks.remove(id.index);
3311
3312
3313
+}
3314
- fn close(&mut self) {
3315
+impl Drop for ClosingCallbackList {
3316
+ fn drop(&mut self) {
3317
for cb in self.callbacks.drain() {
3318
(cb.callback)();
3319
0 commit comments