Skip to content

Commit dd402ba

Browse files
committed
Fixed hang when using RunLoop.main.run with Date() on Android/Linux
1 parent f62c026 commit dd402ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/RunLoop.subproj/CFRunLoop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2846,7 +2846,7 @@ static int32_t __CFRunLoopRun(CFRunLoopRef rl, CFRunLoopModeRef rlm, CFTimeInter
28462846
// Here, use the app-supplied message queue mask. They will set this if they are interested in having this run loop receive windows messages.
28472847
__CFRunLoopWaitForMultipleObjects(waitSet, NULL, poll ? 0 : TIMEOUT_INFINITY, rlm->_msgQMask, &livePort, &windowsMessageReceived);
28482848
#elif TARGET_OS_LINUX
2849-
__CFRunLoopServiceFileDescriptors(waitSet, CFPORT_NULL, TIMEOUT_INFINITY, &livePort);
2849+
__CFRunLoopServiceFileDescriptors(waitSet, CFPORT_NULL, poll ? 0 : TIMEOUT_INFINITY, &livePort);
28502850
#endif
28512851

28522852
__CFRunLoopLock(rl);

0 commit comments

Comments
 (0)