Skip to content

Commit

Permalink
Fix order of uploaded/downloaded parameters in HTTPAnnounceRequestMes…
Browse files Browse the repository at this point in the history
…sage.parse

Order of the parameters to the HTTPAnnounceRequestMessage constructor was incorrect in the parse() method. Thanks to Dan Oxlade for reporting the problem.

Closes #48.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
  • Loading branch information
mpetazzoni committed Jul 22, 2013
1 parent 9a27ffa commit 9370d86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static HTTPAnnounceRequestMessage parse(ByteBuffer data)

return new HTTPAnnounceRequestMessage(data, infoHash,
new Peer(ip, port, ByteBuffer.wrap(peerId)),
downloaded, uploaded, left, compact, noPeerId,
uploaded, downloaded, left, compact, noPeerId,
event, numWant);
} catch (InvalidBEncodingException ibee) {
throw new MessageValidationException(
Expand Down

0 comments on commit 9370d86

Please sign in to comment.