diff --git a/command/agent/http.go b/command/agent/http.go index 236fd451f..e80b459a6 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -179,7 +179,7 @@ func (ln tcpKeepAliveListener) Accept() (c net.Conn, err 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(%v)", s.addr) + s.logger.Printf("[DEBUG] http: Shutting down http server (%v)", s.addr) s.listener.Close() } } diff --git a/command/agent/scada.go b/command/agent/scada.go index f94bfe714..b47b435ca 100644 --- a/command/agent/scada.go +++ b/command/agent/scada.go @@ -141,7 +141,6 @@ func (s *scadaListener) Close() error { return nil } s.closed = true - close(s.pending) close(s.closedCh) return nil }