From 392a12af9262dbec25c197f7b4cac37162bdd163 Mon Sep 17 00:00:00 2001 From: Zsombor Welker Date: Sat, 20 Feb 2021 14:53:24 +0100 Subject: [PATCH] Fix toggling in SpircCommand::PlayPause Fix play/pause toggling in handle_play_pause() to correctly call handled_play()/handle_pause() based on the state. --- connect/src/spirc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/src/spirc.rs b/connect/src/spirc.rs index 5e3ba389..e1e3bb50 100644 --- a/connect/src/spirc.rs +++ b/connect/src/spirc.rs @@ -828,7 +828,7 @@ impl SpircTask { self.handle_play() } SpircPlayStatus::Playing { .. } | SpircPlayStatus::LoadingPlay { .. } => { - self.handle_play() + self.handle_pause() } _ => (), }