Fix updating UI on main thread

This commit is contained in:
Arkadiusz Fal 2022-08-22 19:04:01 +02:00
parent 256bbd52a7
commit a22d953a6c

View File

@ -322,7 +322,10 @@ final class AVPlayerBackend: PlayerBackend {
guard finished else {
return
}
self.model.preservedTime = nil
DispatchQueue.main.async { [weak self] in
self?.model.preservedTime = nil
}
startPlaying()
}