Browse Source

maxConcurrentOperationUploadCameraAllPhoto

Marino Faggiana 8 năm trước cách đây
mục cha
commit
75d47f9bef
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      iOSClient/AppDelegate.m
  2. 1 1
      iOSClient/CCGlobal.h

+ 1 - 1
iOSClient/AppDelegate.m

@@ -129,7 +129,7 @@
     
     _netQueueUploadCameraAllPhoto = [[NSOperationQueue alloc] init];
     _netQueueUploadCameraAllPhoto.name = @"it.twsweb.cryptocloud.queueUploadCameraAllPhoto";
-    _netQueueUploadCameraAllPhoto.maxConcurrentOperationCount = 1;
+    _netQueueUploadCameraAllPhoto.maxConcurrentOperationCount = maxConcurrentOperationUploadCameraAllPhoto;
     
 #ifdef CC
     // Inizialize DBSession for Dropbox

+ 1 - 1
iOSClient/CCGlobal.h

@@ -189,7 +189,7 @@ extern NSString *const BKPasscodeKeychainServiceName;
 
 #define maxConcurrentOperation 10
 #define maxConcurrentOperationDownloadUpload 10
-
+#define maxConcurrentOperationUploadCameraAllPhoto 1
 
 // Error
 #define CCErrorTaskNil -9999