Browse files

fix metadata_size in sent message

  • Loading branch information...
1 parent feb7f14 commit 9e52381d3a99e98d80b96a91077f9000ee2cb6b2 @feross committed Feb 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/torrent.js
View
2 lib/torrent.js
@@ -98,7 +98,7 @@ Torrent.prototype._onWire = function (wire) {
// Only send metadata_size if we have complete metadata
if (self.metadata)
- extendedMessage.metadata_size = self.metadata.length
+ extendedMessage.metadata_size = self.metadataRaw.length
wire.extended(0, extendedMessage)
}

0 comments on commit 9e52381

Please sign in to comment.