{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2796","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2796/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2796/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2796/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/2796","id":89504061,"number":2796,"title":"AFURLSessionManager  af_resume  infinite recursive call ","user":{"login":"com314159","id":5378240,"avatar_url":"https://avatars.githubusercontent.com/u/5378240?v=3","gravatar_id":"","url":"https://api.github.com/users/com314159","html_url":"https://github.com/com314159","followers_url":"https://api.github.com/users/com314159/followers","following_url":"https://api.github.com/users/com314159/following{/other_user}","gists_url":"https://api.github.com/users/com314159/gists{/gist_id}","starred_url":"https://api.github.com/users/com314159/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/com314159/subscriptions","organizations_url":"https://api.github.com/users/com314159/orgs","repos_url":"https://api.github.com/users/com314159/repos","events_url":"https://api.github.com/users/com314159/events{/privacy}","received_events_url":"https://api.github.com/users/com314159/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T08:23:47Z","updated_at":"2015-06-26T13:05:19Z","closed_at":"2015-06-26T13:05:19Z","body":"I use AFNetworking 2.5.3\r\n\r\nin AFURLSessionManager , I do not know why you recursive call af_resume method. From your code \r\n\r\n- (void)af_resume {\r\n    NSURLSessionTaskState state = self.state;\r\n    [self af_resume];\r\n\r\n    if (state != NSURLSessionTaskStateRunning) {\r\n        [[NSNotificationCenter defaultCenter] postNotificationName:AFNSURLSessionTaskDidResumeNotification object:self];\r\n    }\r\n}\r\n\r\nit will infinite recursive call af_resume.\r\n\r\nAnd in  my app, some people crashed by this problem.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5378240/8249695/8904f166-169f-11e5-8988-b28157c18fa2.png)\r\n\r\n\r\nhope you can fix it. "},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/115673070","html_url":"https://github.com/AFNetworking/AFNetworking/issues/2796#issuecomment-115673070","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2796","id":115673070,"user":{"login":"kcharwood","id":198768,"avatar_url":"https://avatars.githubusercontent.com/u/198768?v=3","gravatar_id":"","url":"https://api.github.com/users/kcharwood","html_url":"https://github.com/kcharwood","followers_url":"https://api.github.com/users/kcharwood/followers","following_url":"https://api.github.com/users/kcharwood/following{/other_user}","gists_url":"https://api.github.com/users/kcharwood/gists{/gist_id}","starred_url":"https://api.github.com/users/kcharwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcharwood/subscriptions","organizations_url":"https://api.github.com/users/kcharwood/orgs","repos_url":"https://api.github.com/users/kcharwood/repos","events_url":"https://api.github.com/users/kcharwood/events{/privacy}","received_events_url":"https://api.github.com/users/kcharwood/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T13:05:19Z","updated_at":"2015-06-26T13:05:19Z","body":"I'm really stumped on this one.\r\n\r\nThis has also been reported in [https://github.com/AFNetworking/AFNetworking/issues/2743]. Can you let me know what other third party libraries are included in your app? We have unit tests that specifically test and confirm the swizzling is properly setup for AF, but it appears some outside library is also creating a problem.\r\n\r\nCan you add your information to #2743?"}}