From 850577d6bc2b2249d5d4a8e3c7efc8bd92e78063 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 3 Apr 2020 20:01:29 -0500 Subject: [PATCH] Change so that we only attempt to subscribe when creating new account. --- Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift index 291530123..47949fe90 100644 --- a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift @@ -437,11 +437,11 @@ final class CloudKitAccountDelegate: AccountDelegate { os_log(.error, log: self.log, "Error adding account container: %@", error.localizedDescription) } } + zones.forEach { zone in + zone.subscribe() + } } - zones.forEach { zone in - zone.subscribe() - } } func accountWillBeDeleted(_ account: Account) {