Add a comment

This commit is contained in:
James Wilson
2021-08-02 09:54:11 +01:00
parent b79759a412
commit c2892286a6
+3
View File
@@ -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 {