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:
authorFeross Aboukhadijeh <feross@feross.org>2015-09-17 00:27:55 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-09-17 00:27:55 +0300
commit9e67ed772a05daec160f1bb05977b8f65cf83fd6 (patch)
tree55fcf841415e948b4ac95def7be610d9efd13ef4 /index.js
parent5afdec34769248e672cafc7c73a12feedf73b9ec (diff)
standard
Diffstat (limited to 'index.js')
-rw-r--r--index.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.js b/index.js
index 1f24c4b..4f4577d 100644
--- a/index.js
+++ b/index.js
@@ -199,9 +199,11 @@ WebTorrent.prototype.seed = function (input, opts, onseed) {
var streams
var torrent = self.add(undefined, opts, function (torrent) {
- var tasks = [function (cb) {
- torrent.load(streams, cb)
- }]
+ var tasks = [
+ function (cb) {
+ torrent.load(streams, cb)
+ }
+ ]
if (self.dht) {
tasks.push(function (cb) {
torrent.on('dhtAnnounce', cb)