From 2ad82e68df2183c56b61d24147ca05fae034423c Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 15 Dec 2021 14:45:34 +0900 Subject: [PATCH] WIP Stop MPDHandler thread on failed auth --- src/mpd_handler.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mpd_handler.rs b/src/mpd_handler.rs index 6c80337..9f22bbd 100644 --- a/src/mpd_handler.rs +++ b/src/mpd_handler.rs @@ -505,6 +505,7 @@ impl MPDHandler { write_handle.can_authenticate = false; write_handle.dirty_flag.store(true, Ordering::Relaxed); write_handle.error_text = "Failed to authenticate to MPD".into(); + write_handle.stop_flag.store(true, Ordering::Relaxed); } PollState::CurrentSong | PollState::Status => { write_handle.can_get_status = false;