Removing what appears to have been unnecessary ceremony and incantations for keeping the network thread runloop running.
This commit is contained in:
parent
d1b7ff8f3c
commit
0ae4872df8
1 changed files with 3 additions and 7 deletions
|
|
@ -186,13 +186,9 @@ static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {
|
||||||
@synthesize redirectResponse = _redirectResponse;
|
@synthesize redirectResponse = _redirectResponse;
|
||||||
@synthesize lock = _lock;
|
@synthesize lock = _lock;
|
||||||
|
|
||||||
+ (void) __attribute__((noreturn)) networkRequestThreadEntryPoint:(id)__unused object {
|
+ (void)networkRequestThreadEntryPoint:(id)__unused object {
|
||||||
do {
|
[[NSThread currentThread] setName:@"AFNetworking"];
|
||||||
@autoreleasepool {
|
[[NSRunLoop currentRunLoop] run];
|
||||||
[[NSThread currentThread] setName:@"AFNetworking"];
|
|
||||||
[[NSRunLoop currentRunLoop] run];
|
|
||||||
}
|
|
||||||
} while (YES);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSThread *)networkRequestThread {
|
+ (NSThread *)networkRequestThread {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue