Explorar o código

Add priority for manual upload

Marino Faggiana %!s(int64=8) %!d(string=hai) anos
pai
achega
eec93776e0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      iOSClient/Main/CCMain.m

+ 2 - 0
iOSClient/Main/CCMain.m

@@ -1468,6 +1468,7 @@
                 metadataNet.cryptated = cryptated;
                 metadataNet.errorCode = 0;
                 metadataNet.fileName = fileNameUpload;
+                metadataNet.priority = NSOperationQueuePriorityVeryHigh;
                 metadataNet.selector = selectorUploadFile;
                 metadataNet.selectorPost = nil;
                 metadataNet.session = session;
@@ -1488,6 +1489,7 @@
                 metadataNet.assetLocalItentifier = asset.localIdentifier;
                 metadataNet.cryptated = cryptated;
                 metadataNet.fileName = fileNameUpload;
+                metadataNet.priority = NSOperationQueuePriorityVeryHigh;
                 metadataNet.session = session;
                 metadataNet.selector = selectorReadFileUploadFile;
                 metadataNet.serverUrl = serverUrl;