From 065ee0226f9e74a256b3ec9cf82fa0ce782c2cfc Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Sun, 7 Aug 2011 14:32:02 -0500 Subject: [PATCH] Removing NSDefaultRunLoop frrom default runLoopModes in AFHTTPRequestOperation instances --- AFNetworking/AFHTTPRequestOperation.m | 2 +- AFNetworking/AFImageRequestOperation.m | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index 668f9f7..211b398 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/AFNetworking/AFHTTPRequestOperation.m @@ -113,7 +113,7 @@ static inline BOOL AFHTTPOperationStateTransitionIsValid(AFHTTPOperationState fr self.request = urlRequest; - self.runLoopModes = [NSSet setWithObjects:NSDefaultRunLoopMode, NSRunLoopCommonModes, nil]; + self.runLoopModes = [NSSet setWithObjects:NSRunLoopCommonModes, nil]; self.state = AFHTTPOperationReadyState; diff --git a/AFNetworking/AFImageRequestOperation.m b/AFNetworking/AFImageRequestOperation.m index 3ac0426..cd6ce8e 100644 --- a/AFNetworking/AFImageRequestOperation.m +++ b/AFNetworking/AFImageRequestOperation.m @@ -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