main.go | 4 ++-- diff --git a/main.go b/main.go index 8bac8d9e06e8c05e778fa8d0a2f6e42d26e4d0613a69b1470f5bf24908c11914..cffce33d4c380e90bbb89513cfe11846b7ce5f455f7eacd0ae6a5f581ae40777 100644 --- a/main.go +++ b/main.go @@ -274,8 +274,8 @@ log.Fatal(err) } ln = netutil.LimitListener(ln, *MaxClients) - needsShutdown := make(chan os.Signal, 0) - exitErr := make(chan error, 0) + needsShutdown := make(chan os.Signal, 1) + exitErr := make(chan error) signal.Notify(needsShutdown, syscall.SIGTERM, syscall.SIGINT) go func(s *http.Server) { <-needsShutdown