From ce8f8d2845b6356ae609302700537bac4f013c9d Mon Sep 17 00:00:00 2001 From: talwat <83217276+talwat@users.noreply.github.com> Date: Fri, 21 Feb 2025 21:50:20 +0100 Subject: [PATCH] fix: drop stream before aborting ui to prevent flicker --- src/play.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/play.rs b/src/play.rs index 700558f..e8bb67a 100644 --- a/src/play.rs +++ b/src/play.rs @@ -109,9 +109,9 @@ pub async fn play(args: Args) -> eyre::Result<()> { // Save the volume.txt file for the next session. PersistentVolume::save(player.sink.volume()).await?; + drop(stream.0); player.sink.stop(); ui.abort(); - drop(stream.0); Ok(()) }