diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2022-05-23 13:21:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 13:21:11 +0200 |
commit | 3c97bbe165ef0c5e4fa9b9eb637ff481d8c86884 (patch) | |
tree | 750c15354bda8c535cdc4db95d26b19e01ed848d /ext/websocket/lib.rs | |
parent | d55444b41cdee5b3f281896a7e60ff06c5fc01de (diff) |
fix(ext/websocket): WebSocket dispatch single close event (#13443)
Diffstat (limited to 'ext/websocket/lib.rs')
-rw-r--r-- | ext/websocket/lib.rs | 3 |
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()), } } |