fix(browser-manager): await login-window close during shutdown

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 23:04:29 -04:00
1 parent 3bdc8b4be1
commit 4fd1326089
3 files changed
+17 -5

No files matched your search

+2 -2
View File
@@ -130,8 +130,8 @@ export function createBrowserActionService({
return requireBrowserManager().launchLoginBrowser(socialAccountId, platform, loginUrl);
}
function resetBrowserManager() {
browserManagerRef.current?.shutdown();
async function resetBrowserManager() {
await browserManagerRef.current?.shutdown();
browserManagerRef.current = new BrowserManager(join(db.artifactsDir, "browser"));
}