Method: Fargo::Protocol::PeerDownload#unbind

Defined in:
lib/fargo/protocol/peer_download.rb

#unbindObject



139
140
141
142
143
144
145
146
147
148
149
# File 'lib/fargo/protocol/peer_download.rb', line 139

def unbind
  super

  Fargo.logger.debug "#{self} Disconnected from: #{@other_nick}"

  if @download
    download_failed! @last_error, :recvd => @recvd, :length => @length
  end

  reset_download
end