|
@@ -118,7 +118,9 @@ export function useAudioPlayer(): AudioPlayer {
|
|
|
// mid-synthesis — that is a normal interrupt, not a failure.
|
|
// mid-synthesis — that is a normal interrupt, not a failure.
|
|
|
synthAbort = null
|
|
synthAbort = null
|
|
|
if (err instanceof Error && err.name === 'AbortError') {
|
|
if (err instanceof Error && err.name === 'AbortError') {
|
|
|
- if (loadingId.value === id) loadingId.value = null
|
|
|
|
|
|
|
+ // loadingId was already cleared synchronously by stop(); if a newer
|
|
|
|
|
+ // play() has since set it again, that value belongs to that call,
|
|
|
|
|
+ // not this aborted one. Do nothing here.
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
failPlayback(id, err)
|
|
failPlayback(id, err)
|