From c2892286a68ddb4308646e6fcfce7159f5c64e1d Mon Sep 17 00:00:00 2001 From: James Wilson Date: Mon, 2 Aug 2021 09:54:11 +0100 Subject: [PATCH] Add a comment --- backend/common/src/ws_client/connect.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/common/src/ws_client/connect.rs b/backend/common/src/ws_client/connect.rs index ebf42fe..3e59f81 100644 --- a/backend/common/src/ws_client/connect.rs +++ b/backend/common/src/ws_client/connect.rs @@ -142,6 +142,9 @@ impl Connection { Some(msg) => msg, }; + // We don't explicitly shut down the channel if we hit send errors. Why? Because the + // receive side of the channel will react to socket errors as well, and close things + // down from there. match msg { SentMessage::Text(s) => { if let Err(e) = ws_to_connection.send_text_owned(s).await {