|
@@ -245,8 +245,11 @@ NSOperationQueue *taskQueue;
|
245
|
245
|
[task resume];
|
246
|
246
|
|
247
|
247
|
// network status indicator
|
248
|
|
- if([[options objectForKey:CONFIG_INDICATOR] boolValue] == YES)
|
249
|
|
- [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
|
|
248
|
+ if ([[options objectForKey:CONFIG_INDICATOR] boolValue] == YES) {
|
|
249
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
250
|
+ [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
|
|
251
|
+ });
|
|
252
|
+ }
|
250
|
253
|
__block UIApplication * app = [UIApplication sharedApplication];
|
251
|
254
|
|
252
|
255
|
}
|
|
@@ -483,7 +486,9 @@ NSOperationQueue *taskQueue;
|
483
|
486
|
NSString * respStr = [NSNull null];
|
484
|
487
|
NSString * rnfbRespType = @"";
|
485
|
488
|
|
486
|
|
- [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
|
|
489
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
490
|
+ [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
|
|
491
|
+ });
|
487
|
492
|
|
488
|
493
|
if(respInfo == nil)
|
489
|
494
|
{
|