diff --git a/main/src/application/session.rs b/main/src/application/session.rs index cad1a27b5..3496a95bb 100644 --- a/main/src/application/session.rs +++ b/main/src/application/session.rs @@ -1563,7 +1563,7 @@ impl Session { key: &MappingKey, ) -> Option { self.mappings(compartment).find_map(|m| { - let m = m.borrow(); + let m = m.try_borrow().ok()?; if m.key() == key { Some(m.id()) } else {