{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2476","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2476/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2476/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2476/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/2476","id":52285720,"number":2476,"title":"Multiple AFURLSessionManagers + AFNetworkActivityIndicatorManager = never-ending activity indicator","user":{"login":"tangphillip","id":463460,"avatar_url":"https://avatars.githubusercontent.com/u/463460?v=3","gravatar_id":"","url":"https://api.github.com/users/tangphillip","html_url":"https://github.com/tangphillip","followers_url":"https://api.github.com/users/tangphillip/followers","following_url":"https://api.github.com/users/tangphillip/following{/other_user}","gists_url":"https://api.github.com/users/tangphillip/gists{/gist_id}","starred_url":"https://api.github.com/users/tangphillip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangphillip/subscriptions","organizations_url":"https://api.github.com/users/tangphillip/orgs","repos_url":"https://api.github.com/users/tangphillip/repos","events_url":"https://api.github.com/users/tangphillip/events{/privacy}","received_events_url":"https://api.github.com/users/tangphillip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-17T20:12:28Z","updated_at":"2015-02-17T12:02:12Z","closed_at":null,"body":"When using multiple `AFURLSessionManager`s, AFNetworking generates many extraneous `AFNetworkingTaskDidResumeNotification` notifications, causing the `AFNetworkActivityIndicatorManager` to show the activity indicator permanently.\r\n\r\nSample project demonstrating the issue, courtesy of @eytanbiala: https://dl.dropboxusercontent.com/u/3067376/AFNetworkingTest-2458.zip\r\n\r\n**Root cause:** `AFURLSessionManager`s were determining that tasks belong to them...when they really don't. Managers were using, \"Do I have a task with this `taskIdentifier`?\" as shorthand for, \"Was this task created by me?\" Unfortunately, `taskIdentifier`s are unique only within their `NSURLSession`, and therefore any given identifier can be (and frequently is) used in multiple sessions at the same time."},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/74657569","html_url":"https://github.com/AFNetworking/AFNetworking/issues/2476#issuecomment-74657569","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2476","id":74657569,"user":{"login":"ronak2121","id":1755751,"avatar_url":"https://avatars.githubusercontent.com/u/1755751?v=3","gravatar_id":"","url":"https://api.github.com/users/ronak2121","html_url":"https://github.com/ronak2121","followers_url":"https://api.github.com/users/ronak2121/followers","following_url":"https://api.github.com/users/ronak2121/following{/other_user}","gists_url":"https://api.github.com/users/ronak2121/gists{/gist_id}","starred_url":"https://api.github.com/users/ronak2121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronak2121/subscriptions","organizations_url":"https://api.github.com/users/ronak2121/orgs","repos_url":"https://api.github.com/users/ronak2121/repos","events_url":"https://api.github.com/users/ronak2121/events{/privacy}","received_events_url":"https://api.github.com/users/ronak2121/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T12:02:12Z","updated_at":"2015-02-17T12:02:12Z","body":"By overwriting the task description, this prevents applications from using that field for their own purposes. For example this breaks the work I did for background transfer support in our app.\r\n\r\nWhy did you decide to overwrite the task description vs some of the other approaches?"}}