mirror of
https://github.com/talwat/lowfi
synced 2025-03-12 16:12:22 +00:00
fix: drop stream before aborting ui to prevent flicker
This commit is contained in:
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.
|
// 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(())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user