mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 01:24:37 +02:00
fix: iOS chapter sleep timer issues
This commit is contained in:
parent
4e94fd6ad0
commit
5d23c17d30
3 changed files with 18 additions and 18 deletions
|
@ -244,6 +244,7 @@ class Database {
|
|||
public func getPlaybackSession(id: String) -> PlaybackSession? {
|
||||
do {
|
||||
let realm = try Realm()
|
||||
realm.refresh() // Refresh, because working with stale sessions leads to wrong times
|
||||
return realm.object(ofType: PlaybackSession.self, forPrimaryKey: id)
|
||||
} catch {
|
||||
debugPrint(error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue