main/second-instance: If logger isn't ready, skip further checks
This commit is contained in:
parent
50c9b1bf7f
commit
2e9eaa855a
1 changed files with 7 additions and 0 deletions
|
@ -195,6 +195,13 @@ if (!process.mas) {
|
|||
|
||||
showWindow();
|
||||
}
|
||||
if (!logger) {
|
||||
console.log(
|
||||
'second-instance: logger not initialized; skipping further checks'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const incomingCaptchaHref = getIncomingCaptchaHref(argv);
|
||||
if (incomingCaptchaHref) {
|
||||
const { captcha } = parseCaptchaHref(incomingCaptchaHref, getLogger());
|
||||
|
|
Loading…
Reference in a new issue