Attempt to avoid out-of-order max subscribed layer notifications. (#1882)
* Check for request layer lock only in the goroutine * check before sending PLI * max layer notifier worker * test cleanup * clean up * do notification in the callback
This commit is contained in:
@@ -548,6 +548,10 @@ func (s *StreamAllocator) postEvent(event Event) {
|
||||
|
||||
func (s *StreamAllocator) processEvents() {
|
||||
for event := range s.eventCh {
|
||||
if s.isStopped.Load() {
|
||||
break
|
||||
}
|
||||
|
||||
s.handleEvent(&event)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user