diff options
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go index 142c801d..494aea42 100644 --- a/server/peer.go +++ b/server/peer.go @@ -400,9 +400,9 @@ func (peer *Peer) handleGrpc(grpcReq *GrpcRequest) { result.Data = dst.ToApiStruct() grpcReq.ResponseCh <- result } - close(grpcReq.ResponseCh) - return } + close(grpcReq.ResponseCh) + return case REQ_NEIGHBOR_SHUTDOWN: peer.outgoing <- bgp.NewBGPNotificationMessage(bgp.BGP_ERROR_CEASE, bgp.BGP_ERROR_SUB_ADMINISTRATIVE_SHUTDOWN, nil) case REQ_NEIGHBOR_RESET: |