diff options
author | Chris Balmain <chris@connectivityit.com.au> | 2020-09-16 10:29:01 +1000 |
---|---|---|
committer | Chris Balmain <chris@connectivityit.com.au> | 2020-09-16 10:29:01 +1000 |
commit | f15ecf8b48dc39b2ab4850aa37acbfe7d8e4ea58 (patch) | |
tree | ab35c5bf63b4a9f315e2e4e689e7cf06083057b6 | |
parent | af37271526725a3f1c4b89ab2c1a1f4e9d4f27c2 (diff) |
remove incomingCh when deleting dynamic peer
-rw-r--r-- | pkg/server/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go index 2ee49ec8..1b49880d 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -1296,6 +1296,7 @@ func (s *BgpServer) deleteDynamicNeighbor(peer *peer, oldState bgp.FSMState, e * peer.fsm.lock.RUnlock() cleanInfiniteChannel(peer.fsm.outgoingCh) cleanInfiniteChannel(peer.fsm.incomingCh) + s.delIncoming(peer.fsm.incomingCh) s.broadcastPeerState(peer, oldState, e) } |