From e6e0d070812dbfac3c2428082ddb2a837b8bc7dc Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Thu, 12 Oct 2023 06:42:48 -0400 Subject: [PATCH] iOS: If runloop_iterate returns an error, exit rather than crash. (#15791) --- ui/drivers/ui_cocoatouch.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/drivers/ui_cocoatouch.m b/ui/drivers/ui_cocoatouch.m index 395f3778828..ff19359238e 100644 --- a/ui/drivers/ui_cocoatouch.m +++ b/ui/drivers/ui_cocoatouch.m @@ -69,6 +69,7 @@ static void rarch_draw_observer(CFRunLoopObserverRef observer, ui_companion_cocoatouch_event_command( NULL, CMD_EVENT_MENU_SAVE_CURRENT_CONFIG); main_exit(NULL); + exit(0); return; }