Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Stop cloudprober from starting gRPC server if a grpc listener is not …
Browse files Browse the repository at this point in the history
…created.

PiperOrigin-RevId: 256386263
  • Loading branch information
ls692 authored and manugarg committed Jul 5, 2019
1 parent 1aa6ddf commit 361f0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudprober.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func Start(ctx context.Context) {
}()

go srv.Serve(cloudProber.defaultServerLn)
if grpcSrv != nil {
if grpcSrv != nil && cloudProber.defaultGRPCLn != nil {
go grpcSrv.Serve(cloudProber.defaultGRPCLn)
}

Expand Down

0 comments on commit 361f0d9

Please sign in to comment.