Skip to content

Commit

Permalink
using current stdio for on-listening/downladed scripts
Browse files Browse the repository at this point in the history
this allows to see the output of given scripts directly
  • Loading branch information
manuhabitela committed Aug 10, 2015
1 parent 0fc7513 commit fe827b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ var ontorrent = function (torrent) {
if (argv['on-downloaded']) {
var downloaded = false
engine.on('uninterested', function () {
if (!downloaded) proc.exec(argv['on-downloaded'])
if (!downloaded) spawn(argv['on-downloaded'])
downloaded = true
})
}
Expand Down Expand Up @@ -295,7 +295,7 @@ var ontorrent = function (torrent) {
browser.start()
}

if (argv['on-listening']) proc.exec(argv['on-listening'] + ' ' + href)
if (argv['on-listening']) spawn(argv['on-listening'] + ' ' + href)

if (argv.quiet) return console.log('server is listening on ' + href)

Expand Down

0 comments on commit fe827b8

Please sign in to comment.