diff --git a/veilid-core/src/network_manager/native/protocol/ws.rs b/veilid-core/src/network_manager/native/protocol/ws.rs index 39c48de7..e724e4a0 100644 --- a/veilid-core/src/network_manager/native/protocol/ws.rs +++ b/veilid-core/src/network_manager/native/protocol/ws.rs @@ -21,9 +21,10 @@ fn err_to_network_result(err: async_tungstenite::tungstenite::Error) -> Netwo match err { async_tungstenite::tungstenite::Error::ConnectionClosed | async_tungstenite::tungstenite::Error::AlreadyClosed - | async_tungstenite::tungstenite::Error::Io(_) => { - NetworkResult::NoConnection(to_io_error_other(err)) - } + | async_tungstenite::tungstenite::Error::Io(_) + | async_tungstenite::tungstenite::Error::Protocol( + async_tungstenite::tungstenite::error::ProtocolError::ResetWithoutClosingHandshake, + ) => NetworkResult::NoConnection(to_io_error_other(err)), _ => NetworkResult::InvalidMessage(err.to_string()), } }