mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 05:43:58 +02:00
fix: iOS 16 realm crash
This commit is contained in:
@@ -36,7 +36,7 @@ public class AbsAudioPlayer: CAPPlugin {
|
||||
func restorePlaybackSession() async {
|
||||
do {
|
||||
// Fetch the most recent active session
|
||||
let activeSession = try await Realm().objects(PlaybackSession.self).where({
|
||||
let activeSession = try Realm(queue: nil).objects(PlaybackSession.self).where({
|
||||
$0.isActiveSession == true && $0.serverConnectionConfigId == Store.serverConfig?.id
|
||||
}).last?.freeze()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user