Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 1 commit
  • 1 file changed
  • 0 comments
  • 1 contributor
Oct 20, 2012
Jesper Louis Andersen Cleanup. 2bb12d5

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  src/etorrent_peer_control.erl
6  src/etorrent_peer_control.erl
@@ -685,9 +685,9 @@ handle_message({bitfield, Bitfield}, State) ->
685 685
     NewState  = State#state{remote=NewRemote, local=NewLocal},
686 686
     {ok, NewState};
687 687
 
688  
-handle_message({piece, Index, Offset, Data}, State) ->
689  
-    #state{torrent_id=TorrentId} = State,
690  
-    #state{send_pid=SendPid, download=Download, local=Local, remote=Remote} = State,
  688
+handle_message(
  689
+	{piece, Index, Offset, Data},
  690
+	#state{send_pid=SendPid, download=Download, local=Local, torrent_id=TorrentId, remote=Remote} = State) ->
691 691
     Length = byte_size(Data),
692 692
     Requests = etorrent_peerstate:requests(Local),
693 693
     NewLocal = case etorrent_rqueue:is_head(Index, Offset, Length, Requests) of

No commit comments for this range

Something went wrong with that request. Please try again.