Package list golang-github-go-kit-kit / c34a8fc
adding safety measure in case Stop is called more than once JP Robinson 5 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
185185 // get one last flush in
186186 e.Flush()
187187 // close the connection
188 return e.conn.Close()
188 err := e.conn.Close()
189 // nil the conn to avoid problems
190 // if Stop() is called more than once.
191 e.conn = nil
192 return err
189193 }
190194
191195 // Flush will attempt to create a connection with the given address