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
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 44cd60c..524c044 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -219,8 +219,9 @@ function runDownload (torrentId) {
}
})
- if (argv.list) torrent.once('ready', onReady)
- else {
+ if (argv.list) {
+ torrent.once('ready', onReady)
+ } else {
server = torrent.createServer()
server.listen(argv.port, function () {
if (torrent.ready) onReady()