marinofaggiana 4 years ago
parent
commit
7eb8dee16d

+ 0 - 6
iOSClient/Networking/CCNetworking.h

@@ -37,13 +37,7 @@
 
 + (CCNetworking *)sharedNetworking;
 
-#pragma mark ===== Session =====
-
 - (NSURLSession *)getSessionfromSessionDescription:(NSString *)sessionDescription;
-- (void)invalidateAndCancelAllSession;
-
-#pragma mark ===== Upload =====
-
 - (void)uploadFile:(tableMetadata *)metadata taskStatus:(NSInteger)taskStatus;
 
 @end

+ 1 - 11
iOSClient/Networking/CCNetworking.m

@@ -50,10 +50,7 @@
 - (id)init
 {    
     self = [super init];
-    
-    // Initialization Sessions
-    
-
+        
     [self sessionUpload];
     [self sessionWWanUpload];
     
@@ -113,13 +110,6 @@
     return nil;
 }
 
-- (void)invalidateAndCancelAllSession
-{
- 
-    [[self sessionUpload] invalidateAndCancel];
-    [[self sessionWWanUpload] invalidateAndCancel];
-}
-
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark ===== URLSession download/upload =====
 #pragma --------------------------------------------------------------------------------------------

+ 1 - 3
iOSClient/Settings/CCAdvanced.m

@@ -288,9 +288,7 @@
     UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"" message:NSLocalizedString(@"_want_exit_", nil) preferredStyle:UIAlertControllerStyleActionSheet];
     
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_ok_", nil) style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
-        
-        [[CCNetworking sharedNetworking] invalidateAndCancelAllSession];
-        
+                
         [[NSURLCache sharedURLCache] setMemoryCapacity:0];
         [[NSURLCache sharedURLCache] setDiskCapacity:0];
         [KTVHTTPCache cacheDeleteAllCaches];