Skip to content

Commit

Permalink
shutdown immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Nov 17, 2023
1 parent f26bb91 commit 5542fb5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/server/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func (s *credServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
w.WriteHeader(200)
_ = r.Body.Close()
go func() {
_ = s.listener.Close()
}()
_ = s.listener.Close()
}

// Input receives configuration via HTTP on the port and returns it decoded
Expand Down

0 comments on commit 5542fb5

Please sign in to comment.