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