Skip to content

Commit

Permalink
fix: trylock before unlocking
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Feb 12, 2024
1 parent 9ab8704 commit 32c15c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/analyze/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func (s *WaitGroup) Wait() {

func (s *WaitGroup) check() {
if s.value == 0 {
s.wait.TryLock()
s.wait.Unlock()
}
}

0 comments on commit 32c15c7

Please sign in to comment.