From c1c804b7d96215f84085920474ef14af2981bdf1 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 12 Jan 2023 12:14:15 +0100 Subject: 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. --- pkg/instance/instance.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'pkg/instance') 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 } -- cgit mrf-deployment