From 9a75ca195e79b616e0883d1c40f827860d6bd89c Mon Sep 17 00:00:00 2001 From: Sasha Hilton Date: Sat, 1 May 2021 01:48:42 +0100 Subject: [PATCH] Update spirc shuffle command for tokio migration --- connect/src/spirc.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connect/src/spirc.rs b/connect/src/spirc.rs index 91d86479..8f3b8101 100644 --- a/connect/src/spirc.rs +++ b/connect/src/spirc.rs @@ -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(); } } }