fix: spatial and field exports retained after death

This commit is contained in:
Nova
2025-08-04 13:19:05 -07:00
parent fb0f8d4115
commit 07ea966c01
4 changed files with 18 additions and 12 deletions

View File

@@ -327,7 +327,9 @@ impl MousePointer {
}
while let Some(Ok(Some((handler, field_ref_id)))) = join_set.join_next().await {
let exported_fields = EXPORTED_FIELDS.lock();
let Some(field_ref_node) = exported_fields.get(&field_ref_id) else {
let Some(field_ref_node) =
exported_fields.get(&field_ref_id).and_then(|f| f.upgrade())
else {
println!("didn't find a thing :(");
continue;
};