diff --git a/SyncKit/Classes/QSSynchronizer/CloudKitSynchronizer.swift b/SyncKit/Classes/QSSynchronizer/CloudKitSynchronizer.swift index 5c8f5350..f7b56307 100644 --- a/SyncKit/Classes/QSSynchronizer/CloudKitSynchronizer.swift +++ b/SyncKit/Classes/QSSynchronizer/CloudKitSynchronizer.swift @@ -145,8 +145,9 @@ public class CloudKitSynchronizer: NSObject { @objc public func synchronize(completion: ((Error?) -> ())?) { - if syncing { + guard !syncing else { completion?(SyncError.alreadySyncing) + return } debugPrint("CloudKitSynchronizer >> Initiating synchronization")