From 27ff6aeccb99995880a86ee482dd90c1e5c85d85 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 27 Mar 2019 12:36:30 -0600 Subject: 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. --- admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin.go') diff --git a/admin.go b/admin.go index 9f92db8..487569b 100644 --- a/admin.go +++ b/admin.go @@ -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) -- cgit v1.2.3