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-17 07:46:57 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-07-17 07:46:57 +0300
commit2012084d1389b5ea03ae53a966f04c322312d045 (patch)
treeb60b78e13dcf7f5b66059192b38e34ea0d25daa8 /bin/cmd.js
parent450ed3096bcc7afc5c32fae1cbbd48fe1278fc44 (diff)
cmd: quit faster
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-xbin/cmd.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 6f75dfc..ca25f1b 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -609,8 +609,9 @@ function gracefulExit () {
client.destroy(function (err) {
if (err) return errorAndExit(err)
- // Quit after 5 seconds. This shouldn't be necessary, node never quits even though there's nothing in the event loop when `wrtc` (webtorrent-hybrid) is used :(
- setTimeout(function () { process.exit(0) }, 5000).unref()
+ // Quit after 1 second. This shouldn't be necessary, node never quits even though
+ // there's nothing in the event loop when `wrtc` (webtorrent-hybrid) is used :(
+ setTimeout(function () { process.exit(0) }, 1000).unref()
})
}
}