Fix lock
This commit is contained in:
parent
9c0250e1f6
commit
e0dc572580
1 changed files with 3 additions and 3 deletions
|
@ -890,9 +890,9 @@ impl GuiHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn process_callbacks(&self) -> Result<()> {
|
pub fn process_callbacks(&self) -> Result<()> {
|
||||||
mem::take(&mut *self.callback_list.lock().unwrap())
|
let callbacks = mem::take(&mut *self.callback_list.lock().unwrap());
|
||||||
.into_iter()
|
|
||||||
.try_for_each(|callback| callback())
|
callbacks.into_iter().try_for_each(|callback| callback())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render(
|
fn render(
|
||||||
|
|
Loading…
Reference in a new issue