|
@@ -426,7 +426,9 @@ import Photos
|
|
|
isInTaskUploadBackground(fileName: metadata.fileName) { exists in
|
|
|
if exists {
|
|
|
NKCommon.shared.writeLog("[INFO] Upload already in progress.")
|
|
|
- completion(NKError(errorCode: 0, errorDescription: ""))
|
|
|
+ DispatchQueue.main.async {
|
|
|
+ completion(NKError(errorCode: 0, errorDescription: ""))
|
|
|
+ }
|
|
|
} else {
|
|
|
self.uploadFileInBackground(metadata: metadata, start: start) { error in
|
|
|
DispatchQueue.main.async {
|