Move reset of local description sent on ICE restart internally (#909)
This commit is contained in:
@@ -173,8 +173,8 @@ func (t *TransportManager) GetPublisherRTPReceiver(mid string) *webrtc.RTPReceiv
|
||||
return t.publisher.GetRTPReceiver(mid)
|
||||
}
|
||||
|
||||
func (t *TransportManager) SetPublisherLocalDescriptionSent(sent bool) {
|
||||
t.publisher.SetLocalDescriptionSent(sent)
|
||||
func (t *TransportManager) PublisherLocalDescriptionSent() {
|
||||
t.publisher.LocalDescriptionSent()
|
||||
}
|
||||
|
||||
func (t *TransportManager) WritePublisherRTCP(pkts []rtcp.Packet) error {
|
||||
@@ -201,8 +201,8 @@ func (t *TransportManager) OnSubscriberStreamStateChange(f func(update *sfu.Stre
|
||||
t.subscriber.OnStreamStateChange(f)
|
||||
}
|
||||
|
||||
func (t *TransportManager) SetSubscriberLocalDescriptionSent(sent bool) {
|
||||
t.subscriber.SetLocalDescriptionSent(sent)
|
||||
func (t *TransportManager) SubscriberLocalDescriptionSent() {
|
||||
t.subscriber.LocalDescriptionSent()
|
||||
}
|
||||
|
||||
func (t *TransportManager) HasSubscriberEverConnected() bool {
|
||||
@@ -375,7 +375,6 @@ func (t *TransportManager) ICERestart(iceConfig *types.IceConfig) error {
|
||||
t.SetICEConfig(*iceConfig)
|
||||
}
|
||||
|
||||
t.subscriber.SetLocalDescriptionSent(false)
|
||||
return t.subscriber.CreateAndSendOffer(&webrtc.OfferOptions{
|
||||
ICERestart: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user