Fix ignoring loaded video details

This commit is contained in:
Arkadiusz Fal 2022-11-11 20:34:37 +01:00
parent fa0523d3c6
commit ef1f95a3ad

View File

@ -34,7 +34,7 @@ extension PlayerModel {
.load() .load()
.onSuccess { response in .onSuccess { response in
if let video: Video = response.typedContent() { if let video: Video = response.typedContent() {
guard video == self.currentVideo else { guard video.videoID == self.currentVideo?.videoID else {
self.logger.info("ignoring loaded streams from \(instance.description) as current video has changed") self.logger.info("ignoring loaded streams from \(instance.description) as current video has changed")
return return
} }