diff options
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()), } } |