Drop UserInterface
manually after exit request
This commit is contained in:
parent
6619fab044
commit
d5a15419e9
@ -300,6 +300,9 @@ async fn run_instance<A, E, C>(
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
// Manually drop the user interface
|
||||
drop(ManuallyDrop::into_inner(user_interface));
|
||||
}
|
||||
|
||||
fn build_user_interface<'a, A: Application>(
|
||||
|
@ -383,6 +383,9 @@ async fn run_instance<A, E, C>(
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
// Manually drop the user interface
|
||||
drop(ManuallyDrop::into_inner(user_interface));
|
||||
}
|
||||
|
||||
/// Returns true if the provided event should cause the [`Application`] to
|
||||
|
Loading…
Reference in New Issue
Block a user