Removing NSDefaultRunLoop frrom default runLoopModes in AFHTTPRequestOperation instances
This commit is contained in:
parent
ceed5f6b9f
commit
065ee0226f
2 changed files with 1 additions and 12 deletions
|
|
@ -113,7 +113,7 @@ static inline BOOL AFHTTPOperationStateTransitionIsValid(AFHTTPOperationState fr
|
||||||
|
|
||||||
self.request = urlRequest;
|
self.request = urlRequest;
|
||||||
|
|
||||||
self.runLoopModes = [NSSet setWithObjects:NSDefaultRunLoopMode, NSRunLoopCommonModes, nil];
|
self.runLoopModes = [NSSet setWithObjects:NSRunLoopCommonModes, nil];
|
||||||
|
|
||||||
self.state = AFHTTPOperationReadyState;
|
self.state = AFHTTPOperationReadyState;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,15 +72,4 @@ static inline CGSize kAFImageRequestRoundedCornerRadii(CGSize imageSize) {
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)initWithRequest:(NSURLRequest *)urlRequest {
|
|
||||||
self = [super initWithRequest:urlRequest];
|
|
||||||
if (!self) {
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
self.runLoopModes = [NSSet setWithObject:NSRunLoopCommonModes];
|
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue