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<()> {
|
||||
mem::take(&mut *self.callback_list.lock().unwrap())
|
||||
.into_iter()
|
||||
.try_for_each(|callback| callback())
|
||||
let callbacks = mem::take(&mut *self.callback_list.lock().unwrap());
|
||||
|
||||
callbacks.into_iter().try_for_each(|callback| callback())
|
||||
}
|
||||
|
||||
fn render(
|
||||
|
|
Loading…
Reference in a new issue