Fix goroutine leak in Run

D'oh, the servers' Shutdown() would never be called because they were
never added to the list of servers.

Thanks Danny for finding this.
This commit is contained in:
Matthew Holt 2019-03-27 12:36:30 -06:00
parent a8dc73b4d9
commit 27ff6aeccb
4 changed files with 7 additions and 6 deletions

View file

@ -33,7 +33,7 @@ func StartAdmin(addr string) error {
mux := http.NewServeMux()
mux.HandleFunc("/load", handleLoadConfig)
///// BEGIN PPROF STUFF //////
///// BEGIN PPROF STUFF (TODO: Temporary) /////
mux.HandleFunc("/debug/pprof/", pprof.Index)
mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)