subscribe new participant after JOINED, to ensure negotiate requests aren't missed

This commit is contained in:
David Zhao
2020-12-13 23:08:20 -08:00
parent af0c9dfdf0
commit ac83bf4c78
7 changed files with 253 additions and 73 deletions
+1
View File
@@ -141,6 +141,7 @@ func (t *Track) RemoveSubscriber(participantId string) {
}
func (t *Track) RemoveAllSubscribers() {
logger.GetLogger().Debugw("removing all subscribers", "track", t.id)
t.lock.RLock()
defer t.lock.RUnlock()
for _, f := range t.forwarders {