mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-12 15:04:43 +02:00
Make server config thread-safe
This commit is contained in:
parent
e275aa1699
commit
a3e458fcc4
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ class Store {
|
|||
Database.shared.setLastActiveConfigIndexToNil()
|
||||
}
|
||||
|
||||
_serverConfig = updated
|
||||
// Make safe for accessing on all threads
|
||||
_serverConfig = updated?.freeze()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue