diff options
Diffstat (limited to 'table/table.go')
-rw-r--r-- | table/table.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/table.go b/table/table.go index 22499f5a..7fa6b17a 100644 --- a/table/table.go +++ b/table/table.go @@ -98,7 +98,7 @@ func (td *TableDefault) DeleteDestByPeer(peerInfo *PeerInfo) []Destination { for _, dest := range td.destinations { newKnownPathList := make([]Path, 0) for _, p := range dest.getKnownPathList() { - if p.GetSource() != peerInfo { + if !p.GetSource().Equal(peerInfo) { newKnownPathList = append(newKnownPathList, p) } } |