Skip to content

Commit

Permalink
Return object icluding stat id for selected pair
Browse files Browse the repository at this point in the history
Returning the object with stat id is useful when cross-referencing
stats.
  • Loading branch information
boks1971 committed Sep 16, 2024
1 parent 28adb77 commit 5eb3041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icetransport.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (t *ICETransport) GetSelectedCandidatePair() (*ICECandidatePair, error) {
return nil, err
}

return &ICECandidatePair{Local: &local, Remote: &remote}, nil
return NewICECandidatePair(&local, &remote), nil
}

// NewICETransport creates a new NewICETransport.
Expand Down

0 comments on commit 5eb3041

Please sign in to comment.