From da54c8d70c7f0962831ff0f0628afa931d1f2f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 7 Jul 2019 19:58:46 +0200 Subject: [PATCH] Experimentally revert a small part of #12094, ios external display support, that seemed to break exit. See #12140. --- ios/main.mm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ios/main.mm b/ios/main.mm index e52f3f8bf9..dd4bf235a4 100644 --- a/ios/main.mm +++ b/ios/main.mm @@ -61,10 +61,12 @@ bool System_GetPropertyBool(SystemProperty prop) { void System_SendMessage(const char *command, const char *parameter) { if (!strcmp(command, "finish")) { - dispatch_async(dispatch_get_main_queue(), ^{ - [sharedViewController shutdown]; - exit(0); - }); + exit(0); + // The below seems right, but causes hangs. See #12140. + // dispatch_async(dispatch_get_main_queue(), ^{ + // [sharedViewController shutdown]; + // exit(0); + // }); } }