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 b1ca495 commit 949176aCopy full SHA for 949176a
src/index.ts
@@ -131,7 +131,8 @@ function manageBackgroundServices(
131
// for 10 minutes, the server shuts down automatically. Skipped for dev, where that might be OK.
132
// This should catch even hard desktop shell crashes, as sessions shut down automatically if the
133
// client websocket becomes non-responsive.
134
- if (activeSessions <= 0 && IS_PROD_BUILD) {
+ // We skip this on Mac, where apps don't generally close when the last window closes.
135
+ if (activeSessions <= 0 && IS_PROD_BUILD && process.platform !== 'darwin') {
136
if (shutdownTimer) {
137
clearTimeout(shutdownTimer);
138
shutdownTimer = undefined;
0 commit comments