浏览代码

Add priority for manual upload

Marino Faggiana 8 年之前
父节点
当前提交
eec93776e0
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;