mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
more lock releasing
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user