From cd7b523147eeb4213dfe67a251ec066bfcca5f8d Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Mon, 12 Feb 2024 00:54:37 +0100 Subject: [PATCH] fix: trylock before unlocking --- pkg/analyze/wait.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/analyze/wait.go b/pkg/analyze/wait.go index 3c4f63e1f..204921a54 100644 --- a/pkg/analyze/wait.go +++ b/pkg/analyze/wait.go @@ -43,6 +43,7 @@ func (s *WaitGroup) Wait() { func (s *WaitGroup) check() { if s.value == 0 { + s.wait.TryLock() s.wait.Unlock() } }