From 37a62760bc2e263f09b2add832fc293ffcad2d40 Mon Sep 17 00:00:00 2001 From: Aleksi Juvani Date: Mon, 16 Sep 2019 12:05:27 +0300 Subject: [PATCH] Fix panic upon closing the app on iOS --- 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 f4cd72ed5c..07e1c5ef33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,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. # 0.20.0 Alpha 3 (2019-08-14) diff --git a/src/platform_impl/ios/app_state.rs b/src/platform_impl/ios/app_state.rs index 5b5b726b78..6009a26a7e 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