From: Stephen Seo Date: Wed, 15 Dec 2021 05:45:34 +0000 (+0900) Subject: WIP Stop MPDHandler thread on failed auth X-Git-Tag: 0.2.0~14 X-Git-Url: https://git.seodisparate.com/tbm-server-edit-set-haste.png?a=commitdiff_plain;h=2ad82e68df2183c56b61d24147ca05fae034423c;p=mpd_info_screen WIP Stop MPDHandler thread on failed auth --- 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;