Skip to content

Commit

Permalink
Release 8.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarirauta committed Dec 29, 2018
1 parent b275f9e commit 3c78b61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iCloudSync.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'iCloudSync'
s.version = '8.0.8'
s.version = '8.0.9'
s.license = { :type => 'MIT' }
s.summary = 'Sync and Manage iCloud Documents. A fork, complete rewrite, of iCloud Document Sync written in pure Swift.'

Expand Down
2 changes: 1 addition & 1 deletion iCloudSync/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>8.0.8</string>
<string>8.0.9</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
7 changes: 5 additions & 2 deletions iCloudSync/iCloud.swift
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,10 @@ open class iCloud: NSObject {
return
}

func finish() {
completion?(nil)
}

if self.verboseLogging { NSLog("[iCloud] File exists, attempting to delete it") }

// Move to the background thread for safety
Expand All @@ -824,8 +828,7 @@ open class iCloud: NSObject {
if self.verboseLogging { NSLog("[iCloud] The document has been deleted") }

DispatchQueue.main.async {
self.updateFiles()
completion?(nil)
self.updateFiles(with: finish)
}
}
})
Expand Down

0 comments on commit 3c78b61

Please sign in to comment.