From 0ae4872df8947635424012d1fb424af838efd4bd Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Tue, 18 Jun 2013 20:36:41 -0700 Subject: [PATCH] Removing what appears to have been unnecessary ceremony and incantations for keeping the network thread runloop running. --- AFNetworking/AFURLConnectionOperation.m | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 71d34f2..cb85096 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -186,13 +186,9 @@ static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) { @synthesize redirectResponse = _redirectResponse; @synthesize lock = _lock; -+ (void) __attribute__((noreturn)) networkRequestThreadEntryPoint:(id)__unused object { - do { - @autoreleasepool { - [[NSThread currentThread] setName:@"AFNetworking"]; - [[NSRunLoop currentRunLoop] run]; - } - } while (YES); ++ (void)networkRequestThreadEntryPoint:(id)__unused object { + [[NSThread currentThread] setName:@"AFNetworking"]; + [[NSRunLoop currentRunLoop] run]; } + (NSThread *)networkRequestThread {