aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-01-12 12:14:15 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-01-19 11:26:54 +0100
commitc1c804b7d96215f84085920474ef14af2981bdf1 (patch)
tree13c421fb42a8d4ebccacd53d59177739a64aaecd /pkg/instance
parent7338ad6e0b83c4ba1607090846e0b663861929a1 (diff)
syz-ci: explicitly stop all running jobs on update
Otherwise we might end up in a situation when we have stopped all fuzzing, but wait for the job processor to report Done to the waitgroup object.
Diffstat (limited to 'pkg/instance')
-rw-r--r--pkg/instance/instance.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index 31f75e21c..882d678d4 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -571,12 +571,6 @@ func (s *Semaphore) Wait() {
<-s.ch
}
-func (s *Semaphore) WaitAll() {
- for i := 0; i < cap(s.ch); i++ {
- s.Wait()
- }
-}
-
func (s *Semaphore) WaitC() <-chan struct{} {
return s.ch
}