Skip to content

Commit

Permalink
mpd: fix issue with command_list_begin
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Nov 9, 2024
1 parent a6a1c60 commit 0f17811
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions crates/mpd/src/handlers/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ pub async fn handle_command_list_begin(
});
}

let mut response = response.replace("OK\n", "list_OK\n");
response.push_str("OK\n");
stream.write_all(response.as_bytes()).await?;

Ok(response)
Expand Down
2 changes: 1 addition & 1 deletion crates/mpd/src/handlers/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ pub async fn handle_repeat(

pub async fn handle_getvol(
ctx: &mut Context,
request: &str,
_request: &str,
stream: &mut BufReader<TcpStream>,
) -> Result<String, Error> {
let response = ctx
Expand Down

0 comments on commit 0f17811

Please sign in to comment.