Skip to content

Commit f3f07cd

Browse files
committed
fix(electron): port-in-use dialog shown when opening a new window
1 parent ef82c3d commit f3f07cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/server/src/www.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,10 @@ function startHttpServer(app: Express) {
160160
// should simply focus on the existing window or open a new one, without displaying an error message.
161161
if ("code" in error && error.code === "EADDRINUSE" && (process.argv.includes("--new-window") || !app.requestSingleInstanceLock())) {
162162
console.error(message);
163-
process.exit(1);
164163
} else {
165164
dialog.showErrorBox("Error while initializing the server", message);
166-
process.exit(1);
167165
}
166+
process.exit(1);
168167
});
169168
} else {
170169
console.error(message);

0 commit comments

Comments
 (0)