From c0fc9589dc2927fe1005c420e2968ff09cb7a1c6 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 22 Jun 2022 21:06:42 +0200 Subject: [PATCH] Use canaries --- cove-tui/src/euph/conn.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cove-tui/src/euph/conn.rs b/cove-tui/src/euph/conn.rs index ca58c09..5242f81 100644 --- a/cove-tui/src/euph/conn.rs +++ b/cove-tui/src/euph/conn.rs @@ -183,6 +183,8 @@ impl State { }; select! { + _ = tx_canary => (), + _ = rx_canary => (), _ = Self::listen(&mut ws_rx, &event_tx) => (), _ = Self::send_ping_events(&event_tx) => (), _ = state.handle_events(&event_tx, &mut event_rx) => (),