changeset 2635:3ec675648cf5

iOS: _dw_main_iteration() never seems to return NO. So remove the while() and just let it loop on trylock.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 11 Aug 2021 11:46:36 +0000
parents 4d1bcfc617b2
children 038f83009cdb
files ios/dw.m
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ios/dw.m	Mon Aug 09 23:36:23 2021 +0000
+++ b/ios/dw.m	Wed Aug 11 11:46:36 2021 +0000
@@ -9825,10 +9825,7 @@
         while(pthread_mutex_trylock(mutex) != 0)
         {
             /* Process any pending events */
-            while(_dw_main_iteration([NSDate dateWithTimeIntervalSinceNow:0.01]))
-            {
-                /* Just loop */
-            }
+            _dw_main_iteration([NSDate dateWithTimeIntervalSinceNow:0.01]);
         }
     }
     else