From a3e458fcc4dd020d35c78e66deb21c5f99752302 Mon Sep 17 00:00:00 2001 From: ronaldheft Date: Wed, 10 Aug 2022 17:08:19 -0400 Subject: [PATCH] Make server config thread-safe --- ios/App/Shared/util/Store.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/App/Shared/util/Store.swift b/ios/App/Shared/util/Store.swift index e3eba891..56fe7ad1 100644 --- a/ios/App/Shared/util/Store.swift +++ b/ios/App/Shared/util/Store.swift @@ -21,7 +21,8 @@ class Store { Database.shared.setLastActiveConfigIndexToNil() } - _serverConfig = updated + // Make safe for accessing on all threads + _serverConfig = updated?.freeze() } } }