mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
Fix possible race condition caused by config dir moving after makeSingleInstance
This commit is contained in:
parent
2cd2d1ccfb
commit
5da7cddecf
1 changed files with 3 additions and 3 deletions
|
@ -230,6 +230,9 @@ const start = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const options = parseCommandLine(process.argv);
|
const options = parseCommandLine(process.argv);
|
||||||
|
global.errorLogger = setupErrorLogger(options);
|
||||||
|
const configDirPath = setupConfigDir(options);
|
||||||
|
options.configDirPath = configDirPath;
|
||||||
|
|
||||||
if (!options.devMode) {
|
if (!options.devMode) {
|
||||||
const otherInstanceRunning = app.makeSingleInstance(commandLine => {
|
const otherInstanceRunning = app.makeSingleInstance(commandLine => {
|
||||||
|
@ -243,9 +246,6 @@ const start = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
global.errorLogger = setupErrorLogger(options);
|
|
||||||
const configDirPath = setupConfigDir(options);
|
|
||||||
options.configDirPath = configDirPath;
|
|
||||||
setupCompileCache(configDirPath);
|
setupCompileCache(configDirPath);
|
||||||
|
|
||||||
const onOpenFileBeforeReady = (event, file) => {
|
const onOpenFileBeforeReady = (event, file) => {
|
||||||
|
|
Loading…
Reference in a new issue