This commit is contained in:
DanB
2014-01-09 21:18:09 +01:00

View File

@@ -42,6 +42,7 @@ func (s *Scheduler) Loop() {
for {
s.Lock()
for len(s.queue) == 0 { //hang here if empty
s.Unlock()
<-s.restartLoop
}
a0 := s.queue[0]