Skip to content

Commit

Permalink
main/second-instance: If logger isn't ready, skip further checks
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Nonnenberg <scott@signal.org>
  • Loading branch information
automated-signal and scottnonnenberg-signal committed Oct 20, 2021
1 parent ab2799e commit fb09d74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/main.ts
Expand Up @@ -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());
Expand Down

0 comments on commit fb09d74

Please sign in to comment.