mirror of
https://github.com/danbulant/cushy
synced 2026-06-14 20:11:04 +00:00
Fixing deadlock in debug window cleanup
This commit is contained in:
parent
a6d5b078f5
commit
f61cb2b91b
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue