Bug 1481225: Avoid confusing console spam on native app shutdown. r=aswan

Differential Revision: https://phabricator.services.mozilla.com/D3540

--HG--
extra : rebase_source : b5a240381b7a4b302cca90ac2ac999289891f8d2
This commit is contained in:
Kris Maglione 2018-08-16 11:13:36 -07:00
parent f0a9334f95
commit 2dd0409a0f

View File

@ -251,7 +251,9 @@ var NativeApp = class extends EventEmitter {
// Set a timer to kill the process gracefully after one timeout // Set a timer to kill the process gracefully after one timeout
// interval and kill it forcefully after two intervals. // interval and kill it forcefully after two intervals.
let timer = setTimeout(() => { let timer = setTimeout(() => {
if (this.proc) {
this.proc.kill(GRACEFUL_SHUTDOWN_TIME); this.proc.kill(GRACEFUL_SHUTDOWN_TIME);
}
}, GRACEFUL_SHUTDOWN_TIME); }, GRACEFUL_SHUTDOWN_TIME);
let promise = Promise.all([ let promise = Promise.all([