Skip to content

Commit

Permalink
Allow closing the underlying UDP socket
Browse files Browse the repository at this point in the history
  • Loading branch information
olivielpeau committed Oct 29, 2015
1 parent 690c2f9 commit f354703
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/statsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -376,4 +376,9 @@ def send_to_socket(message)
self.class.logger.error { "Statsd: #{boom.class} #{boom}" } if self.class.logger
nil
end

# Close the underlying socket
def close()
@socket.close
end
end

0 comments on commit f354703

Please sign in to comment.