Skip to content

Commit

Permalink
fix: flash of logs when quitting app
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Dec 22, 2024
1 parent b824134 commit 923d44a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/invoke-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ export const createInvokeManager = (arg: {
});

const cleanupInvokeManager = () => {
invokeManager.exitInvoke();
const status = invokeManager.getStatus();
if (status.type === 'running' || status.type === 'starting') {
invokeManager.exitInvoke();
}
ipcMain.removeHandler('invoke-process:start-invoke');
ipcMain.removeHandler('invoke-process:exit-invoke');
};
Expand Down

0 comments on commit 923d44a

Please sign in to comment.