diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-02-12 02:03:45 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-02-12 02:03:45 +0300 |
commit | 72a966d0c95c7f5beb6b6e18e9fa6b7e65d7aadd (patch) | |
tree | 8c9e3f5e639147993c3105badd6698437e9c245f /bin | |
parent | e0af2a8c79f7cffa33ac0edc46fdbced84d8df22 (diff) |
style
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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() |