Return object icluding stat id for selected pair

Returning the object with stat id is useful when cross-referencing
stats.
This commit is contained in:
boks1971
2024-09-16 16:55:52 +05:30
committed by Raja Subramanian
parent 28adb77ee6
commit a857d57a87

View File

@@ -67,7 +67,7 @@ func (t *ICETransport) GetSelectedCandidatePair() (*ICECandidatePair, error) {
return nil, err return nil, err
} }
return &ICECandidatePair{Local: &local, Remote: &remote}, nil return NewICECandidatePair(&local, &remote), nil
} }
// NewICETransport creates a new NewICETransport. // NewICETransport creates a new NewICETransport.