Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Unnebäck <linus@folkdatorn.se>2015-08-14 23:39:03 +0300
committerLinus Unnebäck <linus@folkdatorn.se>2015-08-14 23:39:03 +0300
commitf0da56c346f19a9e16f1878f43fd902ced5f6ed3 (patch)
tree60dea73c03b5401d5de69a68fe448847475dbf3f
parentf5268b54a472ed8a52e71c0d8d837bbfcf35d5cc (diff)
adhere to padded-blocks
-rwxr-xr-xbin/cmd.js1
-rw-r--r--index.js1
-rw-r--r--lib/torrent.js1
3 files changed, 0 insertions, 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) {