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.)
|
// (It's manually set as the first tuple anyway.)
|
||||||
continue
|
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
|
// If the route is through a peer accessible on this port, don't
|
||||||
// include it.
|
// include it.
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue