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:
authorFeross Aboukhadijeh <feross@feross.org>2015-02-12 02:03:45 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-02-12 02:03:45 +0300
commit72a966d0c95c7f5beb6b6e18e9fa6b7e65d7aadd (patch)
tree8c9e3f5e639147993c3105badd6698437e9c245f /bin
parente0af2a8c79f7cffa33ac0edc46fdbced84d8df22 (diff)
style
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()