WIP Stop MPDHandler thread on failed auth

This commit is contained in:
Stephen Seo 2021-12-15 14:45:34 +09:00
parent 796ad86f19
commit 2ad82e68df

View file

@ -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;