[client] Nil check on ICE remote conn (#2806)

This commit is contained in:
Zoltan Papp
2024-10-31 23:18:35 +01:00
committed by GitHub
parent 4c758c6e52
commit ad4f0a6fdf
2 changed files with 26 additions and 0 deletions

View File

@@ -309,6 +309,11 @@ func (conn *Conn) iCEConnectionIsReady(priority ConnPriority, iceConnInfo ICECon
return
}
if remoteConnNil(conn.log, iceConnInfo.RemoteConn) {
conn.log.Errorf("remote ICE connection is nil")
return
}
conn.log.Debugf("ICE connection is ready")
if conn.currentConnPriority > priority {