fix: drop stream before aborting ui to prevent flicker

This commit is contained in:
talwat 2025-02-21 21:50:20 +01:00
parent f0123fd2bc
commit ce8f8d2845

View File

@ -109,9 +109,9 @@ pub async fn play(args: Args) -> eyre::Result<()> {
// Save the volume.txt file for the next session. // Save the volume.txt file for the next session.
PersistentVolume::save(player.sink.volume()).await?; PersistentVolume::save(player.sink.volume()).await?;
drop(stream.0);
player.sink.stop(); player.sink.stop();
ui.abort(); ui.abort();
drop(stream.0);
Ok(()) Ok(())
} }