From de33a92a1b14a7c04e761d5b95da09175a2a48c6 Mon Sep 17 00:00:00 2001 From: Aleksi Juvani <3168386+aleksijuvani@users.noreply.github.com> Date: Thu, 17 Oct 2019 01:52:10 +0300 Subject: [PATCH] Fix panic upon closing the app on iOS (#1168) --- CHANGELOG.md | 1 + src/platform_impl/ios/app_state.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd95c68a..e5764e40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Officially remove the Emscripten backend. - On Windows, fix handling of surrogate pairs when dispatching `ReceivedCharacter`. - On macOS 10.15, fix freeze upon exiting exclusive fullscreen mode. +- On iOS, fix panic upon closing the app. - On X11, allow setting mulitple `XWindowType`s. - On iOS, fix null window on initial `HiDpiFactorChanged` event. - On Windows, fix fullscreen window shrinking upon getting restored to a normal window. diff --git a/src/platform_impl/ios/app_state.rs b/src/platform_impl/ios/app_state.rs index 5b5b726b..6009a26a 100644 --- a/src/platform_impl/ios/app_state.rs +++ b/src/platform_impl/ios/app_state.rs @@ -462,7 +462,7 @@ impl AppState { fn terminated_transition(&mut self) -> Box { 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