Merge pull request #708 from librespot-org/revert-666-dev

Revert "Add shuffle command and command handling"
This commit is contained in:
Sasha Hilton 2021-05-01 01:54:56 +01:00 committed by GitHub
commit cc9d6f54ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -352,7 +352,7 @@ impl Spirc {
let _ = self.commands.send(SpircCommand::Shutdown);
}
pub fn shuffle(&self) {
let _ = self.commands.unbounded_send(SpircCommand::Shuffle);
let _ = self.commands.send(SpircCommand::Shuffle);
}
}
@ -525,7 +525,6 @@ impl SpircTask {
}
SpircCommand::Shuffle => {
CommandSender::new(self, MessageType::kMessageTypeShuffle).send();
self.commands.close();
}
}
}