Fix crash in rtmpDataPackets
This commit is contained in:
parent
298ae0935f
commit
d1ab38b266
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ func (port *EtherTalkPort) rtmpDataPackets(splitHorizon bool) []*rtmp.DataPacket
|
|||
// (It's manually set as the first tuple anyway.)
|
||||
continue
|
||||
}
|
||||
if splitHorizon && rt.EtherTalkPeer.Port == port {
|
||||
if splitHorizon && rt.EtherTalkPeer != nil && rt.EtherTalkPeer.Port == port {
|
||||
// If the route is through a peer accessible on this port, don't
|
||||
// include it.
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue