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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user