Skip to content

Commit

Permalink
fix: Open FPM button
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Aug 2, 2023
1 parent 2c43d55 commit a921a28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/back/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,7 @@ export function registerRequestCallbacks(state: BackState, init: () => Promise<v
const updatesReady = state.componentStatuses.filter(c => c.state === ComponentState.NEEDS_UPDATE).length > 0;
exitApp(state, async () => {
const args = updatesReady ? ['/update', '/launcher'] : ['/launcher'];
const child = child_process.spawn(fpmPath, args, { detached: true, cwd, stdio: ['ignore', 'ignore', 'ignore'] });
const child = child_process.spawn(fpmPath, args, { detached: true, shell: true, cwd, stdio: ['ignore', 'ignore', 'ignore'] });
child.unref();
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/back/util/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export async function exit(state: BackState, beforeProcessExit?: () => void | Pr
console.log(' - Cleanup Complete, Exiting Process...');
if (beforeProcessExit) {
console.log(' - Executing callback before process exit...');
await beforeProcessExit();
await Promise.resolve(beforeProcessExit());
}
await state.socketServer.broadcast(BackOut.QUIT);
console.log(' - Quit Broadcast Sent');
Expand Down

0 comments on commit a921a28

Please sign in to comment.