Warn when exiting due to single-instance

This lost me a fair bit of time trying to figure out why Riot was
starting and then immediately quitting.
pull/3727/head
David Baker 2017-04-25 10:18:17 +01:00
parent 4dd6ee681d
commit e24ef2bb5c
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ const shouldQuit = electron.app.makeSingleInstance((commandLine, workingDirector
});
if (shouldQuit) {
console.log("Other instance detected: exiting");
electron.app.quit()
}