@@ -48,7 +48,7 @@ - (void)main {
4848 dispatch_async (dispatch_get_main_queue (), ^{
4949 [[UADSWebViewApp getCurrentApp ] sendEvent: NSStringFromCacheEvent(kUnityAdsDownloadError )
5050 category: NSStringFromWebViewEventCategory(kUnityAdsWebViewEventCategoryCache )
51- param1: self .target, [NSNumber numberWithLongLong: fileSize], [NSNumber numberWithLongLong: self .expectedContentSize], exception.name, exception.reason, nil ];
51+ param1: weakSelf .target, [NSNumber numberWithLongLong: fileSize], [NSNumber numberWithLongLong: weakSelf .expectedContentSize], exception.name, exception.reason, nil ];
5252 });
5353 [self stopObserving ];
5454 return ;
@@ -63,7 +63,7 @@ - (void)main {
6363 dispatch_async (dispatch_get_main_queue (), ^{
6464 [[UADSWebViewApp getCurrentApp ] sendEvent: NSStringFromCacheEvent(kUnityAdsDownloadError )
6565 category: NSStringFromWebViewEventCategory(kUnityAdsWebViewEventCategoryCache )
66- param1: self .target, [NSNumber numberWithLongLong: fileSize], [NSNumber numberWithLongLong: self .expectedContentSize], exception.name, exception.reason, nil ];
66+ param1: weakSelf .target, [NSNumber numberWithLongLong: fileSize], [NSNumber numberWithLongLong: weakSelf .expectedContentSize], exception.name, exception.reason, nil ];
6767 });
6868 [self stopObserving ];
6969 return ;
@@ -72,7 +72,7 @@ - (void)main {
7272
7373 [self .request setProgressBlock: ^(NSString *url, long long bytes, long long totalBytes) {
7474 long currentTime = ([[NSDate date ] timeIntervalSince1970 ] * 1000 );
75- if (![weakSelf isCancelled ] && self.progressEventInterval > 0 && self .lastProgressEvent + self .progressEventInterval <= currentTime) {
75+ if (![weakSelf isCancelled ] && self.progressEventInterval > 0 && weakSelf .lastProgressEvent + weakSelf .progressEventInterval <= currentTime) {
7676 [[UADSWebViewApp getCurrentApp ] sendEvent: NSStringFromCacheEvent(kUnityAdsDownloadProgress )
7777 category: NSStringFromWebViewEventCategory(kUnityAdsWebViewEventCategoryCache )
7878 param1: weakSelf.source, [NSNumber numberWithLongLong: bytes], [NSNumber numberWithLongLong: weakSelf.expectedContentSize], nil ];
0 commit comments