diff --git a/Sources/Zephyr.swift b/Sources/Zephyr.swift index f57a756..74d2da6 100644 --- a/Sources/Zephyr.swift +++ b/Sources/Zephyr.swift @@ -458,8 +458,10 @@ extension Zephyr { return } - for key in monitoredKeys where cloudKeys.contains(key) { - syncSpecificKeys(keys: [key], dataStore: .remote) + zephyrQueue.sync { + for key in monitoredKeys where cloudKeys.contains(key) { + syncSpecificKeys(keys: [key], dataStore: .remote) + } } Zephyr.postNotificationAfterSyncFromCloud()