Skip to content

Commit 7c0269d

Browse files
committed
using current stdio for on-listening/downladed scripts
this allows to see the output of given scripts directly
1 parent 73d488f commit 7c0269d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ var ontorrent = function (torrent) {
179179
if (argv['on-downloaded']) {
180180
var downloaded = false
181181
engine.on('uninterested', function () {
182-
if (!downloaded) proc.exec(argv['on-downloaded'])
182+
if (!downloaded) spawn(argv['on-downloaded'])
183183
downloaded = true
184184
})
185185
}
@@ -295,7 +295,7 @@ var ontorrent = function (torrent) {
295295
browser.start()
296296
}
297297

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

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

0 commit comments

Comments
 (0)