Skip to content

Commit

Permalink
This commit close the listner
Browse files Browse the repository at this point in the history
Signed-off-by: mittachaitu <[email protected]>
  • Loading branch information
mittachaitu committed Jun 1, 2020
1 parent ce6a8ba commit 37345f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/cstorvolumeconfig/https.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ func NewHTTPServer(cvcServer *CVCServer) (*HTTPServer, error) {

// Shutdown is used to shutdown the HTTP server
func (s *HTTPServer) Shutdown() {
if s != nil {
s.logger.Printf("[DEBUG] http: Shutting down http server")
s.listener.Close()
}
s.cvcServer.Shutdown()
}

Expand Down

0 comments on commit 37345f3

Please sign in to comment.