summaryrefslogtreecommitdiff
path: root/ext/websocket/lib.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-05-23 13:21:11 +0200
committerGitHub <noreply@github.com>2022-05-23 13:21:11 +0200
commit3c97bbe165ef0c5e4fa9b9eb637ff481d8c86884 (patch)
tree750c15354bda8c535cdc4db95d26b19e01ed848d /ext/websocket/lib.rs
parentd55444b41cdee5b3f281896a7e60ff06c5fc01de (diff)
fix(ext/websocket): WebSocket dispatch single close event (#13443)
Diffstat (limited to 'ext/websocket/lib.rs')
-rw-r--r--ext/websocket/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs
index 163ba46dd..267231238 100644
--- a/ext/websocket/lib.rs
+++ b/ext/websocket/lib.rs
@@ -136,6 +136,9 @@ impl WsStreamResource {
match res {
Ok(()) => Ok(()),
Err(Error::ConnectionClosed) => Ok(()),
+ Err(tokio_tungstenite::tungstenite::Error::Protocol(
+ tokio_tungstenite::tungstenite::error::ProtocolError::SendAfterClosing,
+ )) => Ok(()),
Err(err) => Err(err.into()),
}
}