Skip to content

Commit

Permalink
fix(suite-desktop-core): don't fail hard if http-receiver port is occ…
Browse files Browse the repository at this point in the history
…upied
  • Loading branch information
martykan committed Nov 25, 2024
1 parent 2e1fa63 commit fdb3d98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/suite-desktop-core/src/modules/http-receiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ export const initBackground: ModuleInitBackground = ({ mainWindowProxy, mainThre
}

logger.info(SERVICE_NAME, 'Starting server');
await receiver.start();

try {
await receiver.start();
} catch (error) {
// Don't fail hard if the server can't start
logger.error(SERVICE_NAME, 'Failed to start server: ' + error);
}

return receiver.getInfo();
};
Expand Down

0 comments on commit fdb3d98

Please sign in to comment.