We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8927921 commit ec3f8b5Copy full SHA for ec3f8b5
src/client.rs
@@ -491,7 +491,12 @@ impl<S: Read + Write> Client<S> {
491
// Reflection methods {{{
492
/// Get current music directory
493
pub fn music_directory(&mut self) -> Result<String> {
494
- self.run_command("config", ()).and_then(|_| self.read_field("music_directory"))
+ self.run_command("config", ()).and_then(|_| loop {
495
+ let (key, value) = self.read_pair()?;
496
+ if key == "music_directory" {
497
+ break Ok(value)
498
+ }
499
+ })
500
}
501
502
/// List all available commands
0 commit comments