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() } }