Skip to content

Commit ab60ea2

Browse files
committed
[LW-10649] Remove the commented out safeExitWithCode
1 parent b1441dd commit ab60ea2

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

source/main/ipc/manageAppUpdateChannel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export const handleManageAppUpdateRequests = (window: BrowserWindow) => {
170170

171171
// We need to also wait for `cardano-node` to exit cleanly, otherwise the new auto-updated version
172172
// is showing the new node crashing, because the old one is still running for around 30 seconds:
173-
// WRONG: safeExitWithCode(20);
174173
(window as any).daedalusExitCode = 20;
175174
window.close();
176175
return resolve(response(true, functionPrefix));

source/main/utils/buildAppMenus.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export const buildAppMenus = async (
6464
code: 21,
6565
});
6666
// We have to make sure that cardano-node exits, otherwise we get DB locked errors at startup:
67-
// WRONG: safeExitWithCode(21);
6867
(mainWindow as any).daedalusExitCode = 21;
6968
mainWindow.close();
7069
};
@@ -78,7 +77,6 @@ export const buildAppMenus = async (
7877
code: 22,
7978
});
8079
// We have to make sure that cardano-node exits, otherwise we get DB locked errors at startup:
81-
// WRONG: safeExitWithCode(22);
8280
(mainWindow as any).daedalusExitCode = 22;
8381
mainWindow.close();
8482
};

0 commit comments

Comments
 (0)