Skip to content

Commit

Permalink
fix(ext/websocket): unhandled close rejection in WebsocketStream (#25125
Browse files Browse the repository at this point in the history
)

Fixes #25077
  • Loading branch information
littledivy authored Aug 21, 2024
1 parent c22ff19 commit 9aaad30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/websocket/02_websocketstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ class WebSocketStream {
} catch (_) {
// needed to ignore warnings & assertions
}
}, () => {
// needed to ignore warnings & assertions
});

PromisePrototypeThen(this[_closeSent].promise, () => {
Expand All @@ -335,7 +337,6 @@ class WebSocketStream {
cancel: async (reason) => {
let closeCode = null;
let reasonString = "";

if (
ObjectPrototypeIsPrototypeOf(WebSocketErrorPrototype, reason)
) {
Expand Down

0 comments on commit 9aaad30

Please sign in to comment.