File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -780,6 +780,7 @@ public class ParseRemote: OCKRemoteSynchronizable {
780
780
781
781
guard let parseClock = potentialPCKClock,
782
782
let cloudClock = potentialCKClock else {
783
+ self . isSynchronizing = false
783
784
guard let parseError = error else {
784
785
// There was a different issue that we don't know how to handle
785
786
if #available( iOS 14 . 0 , watchOS 7 . 0 , * ) {
@@ -809,12 +810,14 @@ public class ParseRemote: OCKRemoteSynchronizable {
809
810
cloudVector. merge ( with: localClock)
810
811
811
812
guard let updatedClock = parseClock. encodeClock ( cloudVector) else {
813
+ self . isSynchronizing = false
812
814
completion ( ParseCareKitError . couldntUnwrapClock)
813
815
return
814
816
}
815
817
816
818
// If clocks incremented or new clock introduced, no need to save to Cloud.
817
819
guard shouldIncrementCloudClock || ( !shouldIncrementCloudClock && cloudClock. uuids. count != localClock. uuids. count) else {
820
+ self . isSynchronizing = false
818
821
// Clocks not updated, no need to update cloud.
819
822
self . parseRemoteDelegate? . successfullyPushedDataToCloud ( )
820
823
completion ( nil )
You can’t perform that action at this time.
0 commit comments