Skip to content

Commit

Permalink
Fix for alreadySyncing
Browse files Browse the repository at this point in the history
  • Loading branch information
mentrena committed Aug 9, 2019
1 parent 1e72bc6 commit 66c1058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SyncKit/Classes/QSSynchronizer/CloudKitSynchronizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 66c1058

Please sign in to comment.