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 30356b1 commit 70d22d5Copy full SHA for 70d22d5
capnp-rpc/src/rpc.rs
@@ -2756,17 +2756,13 @@ impl<VatId> Drop for PromiseClient<VatId> {
2756
// object may actually outlive the import.
2757
let slots = &mut self.connection_state.imports.borrow_mut().slots;
2758
if let Some(import) = slots.get_mut(&id) {
2759
- let mut drop_it = false;
2760
if let Some(c) = &import.app_client {
2761
if let Some(cs) = c.upgrade() {
2762
if cs.get_ptr() == self_ptr {
2763
- drop_it = true;
+ import.app_client = None;
2764
}
2765
2766
2767
- if drop_it {
2768
- import.app_client = None;
2769
- }
2770
2771
2772
0 commit comments