From 2579a9860da7b0eaa9aded098921c64f8ea2abab Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 20 Aug 2022 20:34:38 +0200 Subject: [PATCH] Remove unnecessary todo The disconnect is followed by the server closing the connection, so there is no need to handle it manually. --- src/conn.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/conn.rs b/src/conn.rs index 14444af..2eb13b3 100644 --- a/src/conn.rs +++ b/src/conn.rs @@ -286,7 +286,6 @@ impl State { let reply = PingReply { time: Some(p.time) }; event_tx.send(Event::send_rpl(packet.id.clone(), reply))?; } - // TODO Handle disconnect event? _ => {} }