Skip to content

Commit

Permalink
Do not catch
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Nov 25, 2024
1 parent 5a9098c commit 801671e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/server/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,13 +674,7 @@ function ensureEventListenerForDisposableStacks() {
for (const event of terminateEvents) {
globalThis.process.once(event, function terminateHandler() {
return Promise.allSettled(
[...disposableStacks].map(
stack =>
!stack.disposed &&
stack.disposeAsync().catch(e => {
console.error('Error while disposing:', e);
}),
),
[...disposableStacks].map(stack => !stack.disposed && stack.disposeAsync()),
);
});
}
Expand Down

0 comments on commit 801671e

Please sign in to comment.