fix(playback): remove disposed sound instance from cache

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2469>
This commit is contained in:
Kasper Seweryn 2023-06-12 15:55:57 +02:00 committed by Marge
commit 05f79c9489
3 changed files with 13 additions and 1 deletions

View file

@ -324,7 +324,7 @@ export const useQueue = createGlobalState(() => {
const clear = async () => {
await currentSound.value?.pause()
await currentSound.value?.seekTo(0)
currentSound.value?.dispose()
await currentSound.value?.dispose()
clearRadio.value = true