Disable close by dtls to fix migration (#3220)

Pion v4 imports new feature that will close
peerconnection on dtls.close to detects
remote peer closed quickly, it breaks the
session migration.
This commit is contained in:
cnderrauber
2024-11-30 09:20:45 +08:00
committed by GitHub
parent 44d26f0cb4
commit c76fb0bcf4
6 changed files with 7 additions and 47 deletions
-8
View File
@@ -1458,10 +1458,6 @@ func (h AnyTransportHandler) OnFailed(_isShortLived bool, _ici *types.ICEConnect
h.p.onAnyTransportFailed()
}
func (h AnyTransportHandler) OnClosed() {
h.p.onAnyTransportClosed()
}
func (h AnyTransportHandler) OnNegotiationFailed() {
h.p.onAnyTransportNegotiationFailed()
}
@@ -2037,10 +2033,6 @@ func (p *ParticipantImpl) onAnyTransportFailed() {
p.setupDisconnectTimer()
}
func (p *ParticipantImpl) onAnyTransportClosed() {
_ = p.Close(false, types.ParticipantCloseReasonPeerConnectionDisconnected, false)
}
// subscriberRTCPWorker sends SenderReports periodically when the participant is subscribed to
// other publishedTracks in the room.
func (p *ParticipantImpl) subscriberRTCPWorker() {