diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-07-17 07:46:57 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-07-17 07:46:57 +0300 |
commit | 2012084d1389b5ea03ae53a966f04c322312d045 (patch) | |
tree | b60b78e13dcf7f5b66059192b38e34ea0d25daa8 /bin/cmd.js | |
parent | 450ed3096bcc7afc5c32fae1cbbd48fe1278fc44 (diff) |
cmd: quit faster
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-x | bin/cmd.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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() }) } } |