beacon/light/request: fix missing bracket

This commit is contained in:
zsfelfoldi 2024-02-16 22:10:49 +01:00
parent 7fa0a003d3
commit 674089a686
1 changed files with 9 additions and 8 deletions

View File

@ -203,14 +203,15 @@ func (s *Scheduler) syncLoop() {
s.lock.Lock()
s.processRound()
s.lock.Unlock()
for triggered := false; !triggered; {
select {
case stop := <-s.stopCh:
close(stop)
return
case <-s.triggerCh:
triggered = true
case <-s.testWaitCh:
for triggered := false; !triggered; {
select {
case stop := <-s.stopCh:
close(stop)
return
case <-s.triggerCh:
triggered = true
case <-s.testWaitCh:
}
}
}
}