Skip to content

Commit

Permalink
Fix TTS player crash (readium#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
qnga authored Feb 28, 2024
1 parent 11a1737 commit 8d74923
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ internal class TtsPlayer<S : TtsEngine.Settings, P : TtsEngine.Preferences<P>,
// WORKAROUND to get the media buttons correctly working when an audio player was
// running before.
fakePlayingAudio()
playbackJob?.cancelAndJoin()
playIfReadyAndNotPaused()
}
}
Expand Down

0 comments on commit 8d74923

Please sign in to comment.