From 611b94b6c7d2bcff6df37c3c1b0ae91882c33b93 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jul 2024 01:43:26 +0200 Subject: [PATCH] use exit instead of quit --- src/main/updater/http.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index f42e9f3c1..bd70b51d2 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -99,7 +99,7 @@ export async function migrateLegacyToAsar() { originalWriteFileSync(__filename, '// Legacy shim for new asar\n\nrequire("../vencord.asar");'); app.relaunch(); - app.quit(); + app.exit(); } catch (e) { console.error("Failed to migrate to asar", e); @@ -108,7 +108,7 @@ export async function migrateLegacyToAsar() { "Legacy Install", "The way Vencord loaded was changed and the updater failed to migrate. Please reinstall using the Vencord Installer!" ); - app.quit(); + app.exit(1); }); } }