Skip to content

Commit

Permalink
[Issue Alamofire#622] Fixed issue where task was not being released b…
Browse files Browse the repository at this point in the history
…y SessionDelegate.
  • Loading branch information
cnoon committed Jul 28, 2015
1 parent f73b0f8 commit cbd7870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Manager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,9 @@ public class Manager {
taskDidComplete(session, task, error)
} else if let delegate = self[task] {
delegate.URLSession(session, task: task, didCompleteWithError: error)
self[task] = nil
}

self[task] = nil
}

// MARK: - NSURLSessionDataDelegate
Expand Down

0 comments on commit cbd7870

Please sign in to comment.