From 27c3d8c5cdd5e7c8b4f9c8b7bd35b00356773076 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sat, 4 Feb 2023 19:40:27 +0900 Subject: [PATCH] Backport Fix: display not working when no password Previous implementation only worked if MPD was accessed with a password. This commit fixes no-password access of MPD. --- src/mpd_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpd_handler.rs b/src/mpd_handler.rs index 36b2663..0c265b4 100644 --- a/src/mpd_handler.rs +++ b/src/mpd_handler.rs @@ -263,10 +263,10 @@ impl MPDHandler { current_binary_size: 0, poll_state: PollState::None, stream, - password, + password: password.clone(), error_text: String::new(), can_authenticate: true, - is_authenticated: false, + is_authenticated: password.is_empty(), can_get_album_art: true, can_get_album_art_in_dir: true, can_get_status: true,