From f15ecf8b48dc39b2ab4850aa37acbfe7d8e4ea58 Mon Sep 17 00:00:00 2001 From: Chris Balmain Date: Wed, 16 Sep 2020 10:29:01 +1000 Subject: remove incomingCh when deleting dynamic peer --- pkg/server/server.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg') 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) } -- cgit v1.2.3