Close both peer connections to aid migration. (#4382)

* Close both peer connections to aid migration.

In single peer connection case, that would close publisher peer
connection.

@cnderrauber I don't remember why we only closed subscriber peer
connection. I am thinking it is okay to close both (or the publisher
peer connection in single peer connection mode). Please let me know if I
am missing something.

* log change only
This commit is contained in:
Raja Subramanian
2026-03-24 14:19:46 +05:30
committed by GitHub
parent 9474c807c0
commit 9e0a7e545f
3 changed files with 4 additions and 18 deletions
+2 -2
View File
@@ -687,7 +687,7 @@ func (t *MediaTrackReceiver) SetLayerSsrcsForRid(mimeType mime.MimeType, rid str
matchingLayer.RepairSsrc = repairSSRC
}
}
if ssrcFound {
if ssrcFound && (matchingLayer.Ssrc != ssrc || matchingLayer.RepairSsrc != repairSSRC) {
t.params.Logger.Warnw(
"not overriding ssrc", nil,
"rid", rid,
@@ -695,7 +695,7 @@ func (t *MediaTrackReceiver) SetLayerSsrcsForRid(mimeType mime.MimeType, rid str
"existingSSRC", matchingLayer.Ssrc,
"repairSSRC", repairSSRC,
"existingRepairSSRC", matchingLayer.RepairSsrc,
"trackInfo", trackInfo,
"trackInfo", logger.Proto(trackInfo),
)
}