Update spirc shuffle command for tokio migration

This commit is contained in:
Sasha Hilton 2021-05-01 01:48:42 +01:00
parent 9d5ac1b156
commit 9a75ca195e

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();
}
}
}