Fix panic upon closing the app on iOS (#1168)
This commit is contained in:
parent
1c6353aa3a
commit
de33a92a1b
2 changed files with 2 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ impl AppState {
|
|||
|
||||
fn terminated_transition(&mut self) -> Box<dyn EventHandler> {
|
||||
match self.replace_state(AppStateImpl::Terminated) {
|
||||
AppStateImpl::ProcessingRedraws { event_handler, .. } => event_handler,
|
||||
AppStateImpl::ProcessingEvents { event_handler, .. } => event_handler,
|
||||
s => bug!(
|
||||
"`LoopDestroyed` happened while not processing events {:?}",
|
||||
s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue