mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
fix(ext/websocket): unhandled close rejection in WebsocketStream (#25125)
Fixes https://github.com/denoland/deno/issues/25077
This commit is contained in:
parent
c22ff197db
commit
9aaad3064a
1 changed files with 2 additions and 1 deletions
|
@ -323,6 +323,8 @@ class WebSocketStream {
|
|||
} catch (_) {
|
||||
// needed to ignore warnings & assertions
|
||||
}
|
||||
}, () => {
|
||||
// needed to ignore warnings & assertions
|
||||
});
|
||||
|
||||
PromisePrototypeThen(this[_closeSent].promise, () => {
|
||||
|
@ -335,7 +337,6 @@ class WebSocketStream {
|
|||
cancel: async (reason) => {
|
||||
let closeCode = null;
|
||||
let reasonString = "";
|
||||
|
||||
if (
|
||||
ObjectPrototypeIsPrototypeOf(WebSocketErrorPrototype, reason)
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue