mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Fix updating UI on main thread
This commit is contained in:
parent
256bbd52a7
commit
a22d953a6c
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user