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
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-07-28 08:29:33 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-07-28 08:29:33 +0300
commit4b48bad8766a5215c68451f70250a7f6f7262303 (patch)
treea0aba47a714fe64a8fcb6eddd7960713ca1a4bbb /bin/cmd.js
parentd721cb80b472c4faf3691fc81d55d968981d3fef (diff)
cmd: --vlc keeps the event loop alive during "graceful exit" stage (fix #388)
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-xbin/cmd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 8666566..f70a93e 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -358,7 +358,7 @@ function runDownload (torrentId) {
cp.execFile(vlcPath, VLC_ARGS, function (err) {
if (err) return errorAndExit(err)
torrentDone()
- })
+ }).unref()
}
} else if (argv.vlc) {
var root = '/Applications/VLC.app/Contents/MacOS/VLC'
@@ -378,7 +378,7 @@ function runDownload (torrentId) {
cp.exec(cmd, function (err) {
if (err) return errorAndExit(err)
torrentDone()
- })
+ }).unref()
}
if (argv.airplay) {