1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 06:12:16 +03:00

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.
This commit is contained in:
Wez Furlong 2019-11-08 18:50:12 -08:00
parent 6c2fbd43db
commit 7afd77976a

View File

@ -120,7 +120,7 @@ impl ConnectionOps for Connection {
let timer_ref = unsafe {
CFRunLoopTimerCreate(
std::ptr::null(),
CFAbsoluteTimeGetCurrent(),
CFAbsoluteTimeGetCurrent() + secs_f64,
secs_f64,
0,
0,