mirror of
https://github.com/yattee/yattee.git
synced 2025-07-03 10:09:59 +00:00
Fix updating UI on main thread
This commit is contained in:
parent
f9df2692fb
commit
dfa82efaee
@ -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…
x
Reference in New Issue
Block a user