Skip to content

Commit

Permalink
Don't send error for server shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Oct 3, 2018
1 parent 2f2dd41 commit 5d6c46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (cm *controllerManager) serveMetrics(stop <-chan struct{}) {
}
// Run the server
go func() {
if err := server.Serve(cm.metricsListener); err != nil {
if err := server.Serve(cm.metricsListener); err != nil && err != http.ErrServerClosed {
cm.errChan <- err
}
}()
Expand Down

0 comments on commit 5d6c46b

Please sign in to comment.