Browse Source

Set AFNetworking thread name

Signed-off-by: Mattt Thompson <m@mattt.me>
Peter Steinberger 12 years ago
parent
commit
bab6a8b28f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      AFNetworking/AFURLConnectionOperation.m

+ 1 - 0
AFNetworking/AFURLConnectionOperation.m

@@ -162,6 +162,7 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat
 + (void) __attribute__((noreturn)) networkRequestThreadEntryPoint:(id)__unused object {
     do {
         @autoreleasepool {
+            [[NSThread currentThread] setName:@"AFNetworking"];
             [[NSRunLoop currentRunLoop] run];
         }
     } while (YES);