Do not re-use transceiver when negotiation is pending. (#862)

This commit is contained in:
Raja Subramanian
2022-07-31 10:50:55 +05:30
committed by GitHub
parent 997461a2b6
commit a393d64ccc
6 changed files with 143 additions and 5 deletions
+8
View File
@@ -781,6 +781,14 @@ func (p *ParticipantImpl) Negotiate(force bool) {
}
}
func (p *ParticipantImpl) AddNegotiationPending(publisherID livekit.ParticipantID) {
p.subscriber.AddNegotiationPending(publisherID)
}
func (p *ParticipantImpl) IsNegotiationPending(publisherID livekit.ParticipantID) bool {
return p.subscriber.IsNegotiationPending(publisherID)
}
func (p *ParticipantImpl) SetMigrateState(s types.MigrateState) {
p.lock.Lock()
preState := p.MigrateState()