diff options
author | Linus Unnebäck <linus@folkdatorn.se> | 2015-08-14 23:39:03 +0300 |
---|---|---|
committer | Linus Unnebäck <linus@folkdatorn.se> | 2015-08-14 23:39:03 +0300 |
commit | f0da56c346f19a9e16f1878f43fd902ced5f6ed3 (patch) | |
tree | 60dea73c03b5401d5de69a68fe448847475dbf3f | |
parent | f5268b54a472ed8a52e71c0d8d837bbfcf35d5cc (diff) |
adhere to padded-blocks
-rwxr-xr-x | bin/cmd.js | 1 | ||||
-rw-r--r-- | index.js | 1 | ||||
-rw-r--r-- | lib/torrent.js | 1 |
3 files changed, 0 insertions, 3 deletions
@@ -254,7 +254,6 @@ function runCreate (input) { var client, href, playerName, server, serving function runDownload (torrentId) { - if (!argv.out && !argv.stdout && !playerName) { argv.out = process.cwd() } @@ -169,7 +169,6 @@ WebTorrent.prototype.download = function (torrentId, opts, ontorrent) { if (torrent) { if (torrent.ready) process.nextTick(_ontorrent) else torrent.on('ready', _ontorrent) - } else { torrent = new Torrent(torrentId, opts) self.torrents.push(torrent) diff --git a/lib/torrent.js b/lib/torrent.js index 4149faf..eff6433 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -529,7 +529,6 @@ Torrent.prototype._onWire = function (wire, addr) { // If peer supports DHT, send PORT message to report DHT listening port if (wire.peerExtensions.dht && self.client.dht && self.client.dht.listening) { - // When peer sends PORT, add them to the routing table wire.on('port', function (port) { if (!wire.remoteAddress) { |