beacon/light/request: fix missing bracket

This commit is contained in:
zsfelfoldi 2024-02-16 22:10:49 +01:00
parent 7fa0a003d3
commit 674089a686

View file

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