diff options
-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() |