Skip to content

Client::sticker() hangs when fetching a nonexistant sticker #78

Open
@nejni-marji

Description

@nejni-marji

example scenario:

use mpd::Client;

fn main() {
    let address = "127.0.0.1:6600";
    let mut client = Client::connect(address).unwrap();

    let song = client.currentsong().unwrap().unwrap();
    let file = &song.file;
    println!("{:?}", &song);

    let sticker = client.sticker("song", &file, "DOES NOT EXIST");
    println!("{sticker:?}");
}

expected behavior:
immediately return Err()

observed behavior:
long delay before returning Err()

additional information:
the server is running MPD v0.24, which is a recent update with protocol changes surrounding stickers. this probably has something to do with the bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions