mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
f0a9334f95
commit
2dd0409a0f
@ -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(() => {
|
||||||
this.proc.kill(GRACEFUL_SHUTDOWN_TIME);
|
if (this.proc) {
|
||||||
|
this.proc.kill(GRACEFUL_SHUTDOWN_TIME);
|
||||||
|
}
|
||||||
}, GRACEFUL_SHUTDOWN_TIME);
|
}, GRACEFUL_SHUTDOWN_TIME);
|
||||||
|
|
||||||
let promise = Promise.all([
|
let promise = Promise.all([
|
||||||
|
Loading…
Reference in New Issue
Block a user