From 7c3335825405f590a6209bd50a75abbbd2f43652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sat, 23 May 2020 17:06:46 +0200 Subject: [PATCH] aquatic_ws: polling: don't check if event readable We only register interest in readable events so this should be OK --- TODO.md | 2 -- aquatic_ws/src/lib/network/mod.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index f05637e..827a811 100644 --- a/TODO.md +++ b/TODO.md @@ -1,8 +1,6 @@ # TODO ## aquatic_ws -* is it even necessary to check if event is readable in poll, since that - is all we're listening for? * add sensible logging method, maybe stderrlog with quiet as default ## aquatic_udp diff --git a/aquatic_ws/src/lib/network/mod.rs b/aquatic_ws/src/lib/network/mod.rs index 62a49e4..b46ad76 100644 --- a/aquatic_ws/src/lib/network/mod.rs +++ b/aquatic_ws/src/lib/network/mod.rs @@ -97,7 +97,7 @@ pub fn run_poll_loop( valid_until, &mut poll_token_counter, ); - } else if event.is_readable(){ + } else { run_handshakes_and_read_messages( socket_worker_index, &in_message_sender,