mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-09 05:18:40 +02:00
fix: iOS chapter sleep timer issues
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user