spec: It is not certain which process starts first

This commit is contained in:
Cheng Zhao 2017-09-25 11:19:25 +09:00
parent 5940231b76
commit d87ea5713d
2 changed files with 8 additions and 15 deletions

View file

@ -1,8 +1,6 @@
const {app} = require('electron')
process.on('uncaughtException', () => {
app.exit(2)
})
console.log('started') // ping parent
const shouldExit = app.makeSingleInstance(() => {
process.nextTick(() => app.exit(0))