From e24ef2bb5cbbcaa8a4541465b98a7f0793200979 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 25 Apr 2017 10:18:17 +0100 Subject: [PATCH] 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. --- electron/src/electron-main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/electron/src/electron-main.js b/electron/src/electron-main.js index e6ffffac9b..a1fc9c1a6d 100644 --- a/electron/src/electron-main.js +++ b/electron/src/electron-main.js @@ -171,6 +171,7 @@ const shouldQuit = electron.app.makeSingleInstance((commandLine, workingDirector }); if (shouldQuit) { + console.log("Other instance detected: exiting"); electron.app.quit() }