fix(browser-manager): await login-window close during shutdown
This commit is contained in:
1 parent
3bdc8b4be1
commit
4fd1326089
3 files changed
+17
-5
No files matched your search
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user