|
@@ -272,8 +272,6 @@ import Queuer
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- NotificationCenter.default.postOnMainThread(name: k_notificationCenter_downloadedFile, userInfo: ["metadata":metadata, "selector":selector, "errorCode":errorCode, "errorDescription":errorDescription])
|
|
|
|
-
|
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
NCManageDatabase.sharedInstance.setMetadataSession(ocId: metadata.ocId, session: "", sessionError: errorDescription, sessionSelector: selector, sessionTaskIdentifier: 0, status: Int(k_metadataStatusDownloadError))
|
|
NCManageDatabase.sharedInstance.setMetadataSession(ocId: metadata.ocId, session: "", sessionError: errorDescription, sessionSelector: selector, sessionTaskIdentifier: 0, status: Int(k_metadataStatusDownloadError))
|
|
@@ -285,12 +283,11 @@ import Queuer
|
|
CCUtility.setCertificateError(metadata.account, error: true)
|
|
CCUtility.setCertificateError(metadata.account, error: true)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
-
|
|
|
|
- NotificationCenter.default.postOnMainThread(name: k_notificationCenter_downloadedFile, userInfo: ["metadata":metadata, "selector":selector, "errorCode":errorCode, "errorDescription":errorDescription])
|
|
|
|
}
|
|
}
|
|
|
|
|
|
self.downloadRequest[fileNameLocalPath] = nil
|
|
self.downloadRequest[fileNameLocalPath] = nil
|
|
|
|
|
|
|
|
+ NotificationCenter.default.postOnMainThread(name: k_notificationCenter_downloadedFile, userInfo: ["metadata":metadata, "selector":selector, "errorCode":errorCode, "errorDescription":errorDescription])
|
|
NotificationCenter.default.postOnMainThread(name: k_notificationCenter_reloadDataSource, userInfo: ["ocId":metadata.ocId, "serverUrl":metadata.serverUrl])
|
|
NotificationCenter.default.postOnMainThread(name: k_notificationCenter_reloadDataSource, userInfo: ["ocId":metadata.ocId, "serverUrl":metadata.serverUrl])
|
|
|
|
|
|
completion(errorCode)
|
|
completion(errorCode)
|