From b63a6d126e4105a48f64adb09d763e45bff53aca Mon Sep 17 00:00:00 2001 From: Benjamin Cremer Date: Wed, 6 May 2026 16:38:03 +0200 Subject: [PATCH] Trigger the initial build immediately on startup --- daemon.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index 2ff38a9..ceaad35 100644 --- a/daemon.go +++ b/daemon.go @@ -215,7 +215,8 @@ func builder(jobs <-chan string, buildStarted chan<- string, buildDone chan<- bo return time.After(time.Duration(*flagWorkDelay) * time.Millisecond) } - threshold := createThreshold() + // Trigger the initial build immediately on startup. + threshold := time.After(0) eventPath := "" for {