From f3d99541cc95d9d111d731fdfa7f829ce99bfd69 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 16 Jul 2023 12:56:02 -0400 Subject: [PATCH] ws err --- veilid-core/src/network_manager/native/protocol/ws.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()), } }