Skip to content

Commit

Permalink
BugFix: player stops on past stream failure
Browse files Browse the repository at this point in the history
  • Loading branch information
BLeeEZ committed May 14, 2024
1 parent 35d94a3 commit afde421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AmperfyKit/Player/BackendAudioPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class BackendAudioPlayer {
reactToIncompatibleContentType(contentType: playable.fileContentType ?? "", playableDisplayTitle: playable.displayString)
return
}
self.stop()
firstly {
insertStreamPlayable(playable: playable)
}.done {
Expand All @@ -167,7 +168,6 @@ class BackendAudioPlayer {
self.continuePlay()
self.responder?.notifyItemPreparationFinished()
}.catch { error in
self.stop()
self.responder?.notifyErrorOccured(error: error)
self.responder?.notifyItemPreparationFinished()
self.eventLogger.report(topic: "Player", error: error)
Expand Down

0 comments on commit afde421

Please sign in to comment.