# File lib/rubytorrent/peer.rb, line 225 def shutdown rt_debug "#{self.to_s}: shutting down" @running = false @socket.close rescue nil end