Move reset of local description sent on ICE restart internally (#909)

This commit is contained in:
Raja Subramanian
2022-08-12 13:04:06 +05:30
committed by GitHub
parent 692c4d804f
commit b7c44f1ecd
3 changed files with 26 additions and 23 deletions
+2 -2
View File
@@ -410,7 +410,7 @@ func (p *ParticipantImpl) onPublisherAnswer(answer webrtc.SessionDescription) {
prometheus.ServiceOperationCounter.WithLabelValues("answer", "error", "write_message").Add(1)
return
}
p.TransportManager.SetPublisherLocalDescriptionSent(true)
p.TransportManager.PublisherLocalDescriptionSent()
if p.isPublisher.Load() != p.CanPublish() {
p.isPublisher.Store(p.CanPublish())
@@ -1003,7 +1003,7 @@ func (p *ParticipantImpl) onSubscriberOffer(offer webrtc.SessionDescription) {
} else {
prometheus.ServiceOperationCounter.WithLabelValues("offer", "success", "").Add(1)
}
p.TransportManager.SetSubscriberLocalDescriptionSent(true)
p.TransportManager.SubscriberLocalDescriptionSent()
}
// when a new remoteTrack is created, creates a Track and adds it to room