Add Close method for UpDataTrackManager and call it on participant (#4432)

* Add `Close` method for UpDataTrackManager and call it on participant
close.

* include out-of-order packets in total packets
This commit is contained in:
Raja Subramanian
2026-04-04 17:09:02 +05:30
committed by GitHub
parent 55912dff7e
commit 0a503a57f6
3 changed files with 21 additions and 0 deletions
+1
View File
@@ -65,6 +65,7 @@ func (d *dataTrackStats) Update(packet *datatrack.Packet, arrivalTime int64) {
return
case diff > (1 << 15): // out of order
d.numPackets++
d.numPacketsOutOfOrder++
if d.numPacketsLost > 0 {
d.numPacketsLost--