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.
2 parents 63d4da6 + b777730 commit eafc8ebCopy full SHA for eafc8eb
1 file changed
src/menubar-installer.ts
@@ -142,6 +142,10 @@ async function killRunningApp(): Promise<void> {
142
proc.on('close', () => resolve())
143
proc.on('error', () => resolve())
144
})
145
+ for (let i = 0; i < 10; i++) {
146
+ if (!(await isAppRunning())) return
147
+ await new Promise(r => setTimeout(r, 500))
148
+ }
149
}
150
151
export async function installMenubarApp(options: { force?: boolean } = {}): Promise<InstallResult> {
0 commit comments