avoid sending to closed channels

This commit is contained in:
David Zhao
2021-01-26 21:45:00 -08:00
parent a065a01592
commit ed0b9db655
12 changed files with 195 additions and 46 deletions
+2
View File
@@ -200,6 +200,8 @@ func (r *RoomManager) rtcSessionWorker(room *rtc.Room, participant types.Partici
)
}()
defer rtc.Recover()
logger.Debugw("starting RTC session", "node", r.currentNode.Id)
for {
select {
case <-time.After(time.Millisecond * 100):