From cb2ab5191087f5b8b9101f2b384e9ef7106c4453 Mon Sep 17 00:00:00 2001 From: Me on Windows Date: Tue, 6 Jul 2021 17:02:00 +0000 Subject: [PATCH] Stop the player first --- QuickPlay/MpdPlayer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/QuickPlay/MpdPlayer.cs b/QuickPlay/MpdPlayer.cs index 5c663e6..81197cc 100644 --- a/QuickPlay/MpdPlayer.cs +++ b/QuickPlay/MpdPlayer.cs @@ -27,6 +27,7 @@ namespace QuickPlay } } public async Task Play(IPlayable song) { + await mpd.SendAsync(new MpcCore.Commands.Player.Stop()); await SetReasonableOptions(); await mpd.SendAsync(new MpcCore.Commands.Queue.ClearQueue()); await mpd.SendAsync(new MpcCore.Commands.Queue.AddToQueue(song.Metadata.filePath));