Fixing deadlock in debug window cleanup

This commit is contained in:
Jonathan Johnson 2024-06-07 11:01:53 -07:00
parent a6d5b078f5
commit f61cb2b91b
No known key found for this signature in database
GPG key ID: A66D6A34D6620579

View file

@ -58,8 +58,8 @@ impl DebugContext {
});
let this = self.clone();
reader.on_disconnect(move || {
this.section
.map_ref(|section| section.values.lock().remove(id));
let values = this.section.map_ref(|section| section.values.clone());
values.lock().remove(id);
});
}