Increase size of RTCP channel just to be safe. (#641)

Also, using select to log warnings when queue is full.
This commit is contained in:
Raja Subramanian
2022-04-21 12:21:21 +05:30
committed by GitHub
parent 3f9d6c11bc
commit 2b6a304b27
2 changed files with 16 additions and 4 deletions
+5 -1
View File
@@ -354,7 +354,11 @@ func (s *StreamAllocator) postEvent(event Event) {
return
}
s.eventCh <- event
select {
case s.eventCh <- event:
default:
s.params.Logger.Warnw("event queue full", nil)
}
s.eventChMu.RUnlock()
}