deno
0e72129d - fix(websocket): ignore resource close error (#9755)

Commit
5 years ago
fix(websocket): ignore resource close error (#9755) It is possible that the WebSocket is already closed when we try to close it with `WebSocket#close` or in the `error` or `close` events. Currently this leads to an uncatchable promise rejection. This changes this so that closing an already closed WebSocket is a noop.
Author
Parents
Loading