瀏覽代碼

fix invalidateAndCancelAllSession

marinofaggiana 5 年之前
父節點
當前提交
8d55a0ef35
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      iOSClient/Settings/CCAdvanced.m
  2. 0 1
      iOSClient/Utility/NCUtility.swift

+ 0 - 1
iOSClient/Settings/CCAdvanced.m

@@ -206,7 +206,6 @@
     
     
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC),dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC),dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
         
         
-        [[CCNetworking sharedNetworking] invalidateAndCancelAllSession];
         [[NSURLCache sharedURLCache] setMemoryCapacity:0];
         [[NSURLCache sharedURLCache] setMemoryCapacity:0];
         [[NSURLCache sharedURLCache] setDiskCapacity:0];
         [[NSURLCache sharedURLCache] setDiskCapacity:0];
         [KTVHTTPCache cacheDeleteAllCaches];
         [KTVHTTPCache cacheDeleteAllCaches];

+ 0 - 1
iOSClient/Utility/NCUtility.swift

@@ -377,7 +377,6 @@ class NCUtility: NSObject {
     
     
     @objc func removeAllSettings() {
     @objc func removeAllSettings() {
         
         
-        CCNetworking.shared()?.invalidateAndCancelAllSession()
         URLCache.shared.memoryCapacity = 0
         URLCache.shared.memoryCapacity = 0
         URLCache.shared.diskCapacity = 0
         URLCache.shared.diskCapacity = 0
         KTVHTTPCache.cacheDeleteAllCaches()
         KTVHTTPCache.cacheDeleteAllCaches()