summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index 61a80f77..8ad5c3c8 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -1740,11 +1740,7 @@ func (s *Server) StartServer(ctx context.Context, arg *api.StartServerRequest) (
}
func (s *Server) StopServer(ctx context.Context, arg *api.StopServerRequest) (*api.StopServerResponse, error) {
- d, err := s.get(REQ_STOP_SERVER, arg)
- if err != nil {
- return nil, err
- }
- return d.(*api.StopServerResponse), err
+ return &api.StopServerResponse{}, s.bgpServer.Stop()
}
type GrpcRequest struct {