From 7afd77976a65b3a43e8f33075658f79ab6e2fd40 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 8 Nov 2019 18:50:12 -0800 Subject: [PATCH] macos: when scheduling timer, schedule first call for later we were running it immediately which is too soon: the empty mux check would fire before some of the scheduled jobs would have run and registered tabs/windows. --- window/src/os/macos/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/src/os/macos/connection.rs b/window/src/os/macos/connection.rs index e4a7a408c..b2485ed4d 100644 --- a/window/src/os/macos/connection.rs +++ b/window/src/os/macos/connection.rs @@ -120,7 +120,7 @@ impl ConnectionOps for Connection { let timer_ref = unsafe { CFRunLoopTimerCreate( std::ptr::null(), - CFAbsoluteTimeGetCurrent(), + CFAbsoluteTimeGetCurrent() + secs_f64, secs_f64, 0, 0,