We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fdbb22 commit a607986Copy full SHA for a607986
packages/app-desktop/ElectronAppWrapper.ts
@@ -632,6 +632,9 @@ export default class ElectronAppWrapper {
632
}
633
634
if (callingAppGone) {
635
+ // Wait a bit more because even if the app is not responding, the process
636
+ // might still be there for a short while.
637
+ await msleep(1000);
638
this.ipcLogger_.warn('restartAltInstance: App is gone - restarting it');
639
void bridge().launchNewAppInstance(this.env());
640
} else {
packages/app-desktop/bridge.ts
@@ -572,7 +572,7 @@ export class Bridge {
572
app.relaunch();
573
574
575
- app.exit();
+ this.electronApp().exit();
576
577
578
public createImageFromPath(path: string) {
0 commit comments