From f0da56c346f19a9e16f1878f43fd902ced5f6ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Fri, 14 Aug 2015 22:39:03 +0200 Subject: adhere to padded-blocks --- bin/cmd.js | 1 - index.js | 1 - lib/torrent.js | 1 - 3 files changed, 3 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index 0160b5c..5cc5b96 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -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() } diff --git a/index.js b/index.js index 8e638ad..cd8f7d7 100644 --- a/index.js +++ b/index.js @@ -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) { -- cgit v1.2.3