From dab84068f380772e691cf7b25191992cd9779706 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 26 Apr 2026 13:02:09 +0200 Subject: [PATCH] make queueSignal send non-blocking to prevent goroutine leak --- buildmanager.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildmanager.go b/buildmanager.go index 16c8eda..b0fe9d5 100644 --- a/buildmanager.go +++ b/buildmanager.go @@ -136,7 +136,10 @@ func (b *BuildManager) buildQueue(ctx context.Context, queue []*ProtoPackage) er } doneQLock.Unlock() b.buildingLock.Unlock() - b.queueSignal <- struct{}{} + select { + case b.queueSignal <- struct{}{}: + default: + } }(pkg) } } else {