From 0abe4327375aea2efedc5319290892df652d5ef7 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Wed, 25 Feb 2015 02:05:31 +0100 Subject: [PATCH] (iOS) Put dispatch_async around saving operation in applicationWillResignActive --- apple/iOS/platform.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apple/iOS/platform.m b/apple/iOS/platform.m index c014e48c22..37b8153752 100644 --- a/apple/iOS/platform.m +++ b/apple/iOS/platform.m @@ -275,7 +275,10 @@ void notify_content_loaded(void) { - (void)applicationWillResignActive:(UIApplication *)application { + dispatch_async(dispatch_get_main_queue(), + ^{ main_exit_save_config(); + }); [self showPauseMenu: self]; }