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:
authorgrunjol <grunjol@argenteam.net>2015-02-16 01:56:43 +0300
committergrunjol <grunjol@argenteam.net>2015-02-16 01:56:43 +0300
commitf0d62de8d1d32eb53edbb3f86f1bd3d041794435 (patch)
treeeb3e29b565267492c97fbd3ffecdd7a89873b7d6 /bin
parent5ab42fd4fd2d41589a851f81911a00c6b0c46d9f (diff)
parent72a966d0c95c7f5beb6b6e18e9fa6b7e65d7aadd (diff)
Merge branch 'master' of https://github.com/feross/webtorrent into show-reserved-cmd
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 ac650ad..bada74a 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()