mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
parent
66e4a3bb6a
commit
548cdbeb8f
1 changed files with 2 additions and 2 deletions
|
|
@ -571,7 +571,7 @@ func (co *PeerConnection) LocalCandidate() string {
|
|||
}
|
||||
|
||||
cp, err := receivers[0].Transport().ICETransport().GetSelectedCandidatePair()
|
||||
if err != nil {
|
||||
if err != nil || cp == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
@ -586,7 +586,7 @@ func (co *PeerConnection) RemoteCandidate() string {
|
|||
}
|
||||
|
||||
cp, err := receivers[0].Transport().ICETransport().GetSelectedCandidatePair()
|
||||
if err != nil {
|
||||
if err != nil || cp == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue