diff --git a/metrics/graphite/graphite.go b/metrics/graphite/graphite.go index 28c3c65..b355aa0 100644 --- a/metrics/graphite/graphite.go +++ b/metrics/graphite/graphite.go @@ -186,7 +186,11 @@ // get one last flush in e.Flush() // close the connection - return e.conn.Close() + err := e.conn.Close() + // nil the conn to avoid problems + // if Stop() is called more than once. + e.conn = nil + return err } // Flush will attempt to create a connection with the given address