浏览代码

Set AFNetworking thread name

Signed-off-by: Mattt Thompson <m@mattt.me>
Peter Steinberger 12 年之前
父节点
当前提交
bab6a8b28f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);