Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Patching an error in swizzling for _AFStateObserving (#2702)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcharwood committed May 7, 2015
1 parent 7f997ef commit 9b25c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFURLSessionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ @interface NSURLSessionTask (_AFStateObserving)
@implementation NSURLSessionTask (_AFStateObserving)

+ (void)initialize {
if ([NSURLSessionTask class]) {
if ([NSStringFromClass([self class]) isEqualToString:NSStringFromClass([NSURLSessionTask class])]) {
NSURLSessionDataTask *dataTask = [[NSURLSession sessionWithConfiguration:nil] dataTaskWithURL:nil];
Class taskClass = [dataTask superclass];

Expand Down

0 comments on commit 9b25c8f

Please sign in to comment.