Skip to content

Commit

Permalink
Fixed: progress.resignCurrent() is now executed for uploadFile at the…
Browse files Browse the repository at this point in the history
… correct position
  • Loading branch information
phil1995 committed Oct 26, 2020
1 parent f53cfe4 commit 947ddc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CryptomatorCloudAccess/WebDAV/WebDAVProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public class WebDAVProvider: CloudProvider {
return Promise(error)
}
}.recover { error -> Promise<(HTTPURLResponse, Data?)> in
progress.resignCurrent()
switch error {
case URLSessionError.httpError(_, statusCode: 401):
return Promise(CloudProviderError.unauthorized)
Expand All @@ -183,7 +182,8 @@ public class WebDAVProvider: CloudProvider {
default:
return Promise(error)
}
}.then { _, _ in
}.then { _, _ -> Promise<CloudItemMetadata> in
progress.resignCurrent()
return self.fetchItemMetadata(at: cloudPath)
}
}
Expand Down

0 comments on commit 947ddc9

Please sign in to comment.