1
0
mirror of https://github.com/talwat/lowfi synced 2025-04-18 08:33:23 +00:00

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

@ -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(())
}