mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 08:36:29 +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 {
|
guard finished else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
self.model.preservedTime = nil
|
|
||||||
|
DispatchQueue.main.async { [weak self] in
|
||||||
|
self?.model.preservedTime = nil
|
||||||
|
}
|
||||||
|
|
||||||
startPlaying()
|
startPlaying()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user