mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 14:17:19 +02:00
Make server config thread-safe
This commit is contained in:
@@ -21,7 +21,8 @@ class Store {
|
|||||||
Database.shared.setLastActiveConfigIndexToNil()
|
Database.shared.setLastActiveConfigIndexToNil()
|
||||||
}
|
}
|
||||||
|
|
||||||
_serverConfig = updated
|
// Make safe for accessing on all threads
|
||||||
|
_serverConfig = updated?.freeze()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user