From b02484ce8fb3764286a4ed3f68799c1e56907773 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 23 Nov 2024 20:07:25 -0700 Subject: [PATCH] Make code less shit --- scripty_audio_handler/src/audio_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripty_audio_handler/src/audio_handler.rs b/scripty_audio_handler/src/audio_handler.rs index b76111b..cfaab0f 100644 --- a/scripty_audio_handler/src/audio_handler.rs +++ b/scripty_audio_handler/src/audio_handler.rs @@ -145,10 +145,10 @@ impl AudioHandler { loop { tokio::select! { val = rx.recv() => { - let Ok(()) = val else { + if val.is_err() { debug!(%guild_id, "all tx handlers for this call dropped"); return; - }; + } debug!(%guild_id, "got request to reload config for this call"); } _ = tokio::time::sleep(RELOAD_TIME) => {}