|
|
@@ -335,6 +335,8 @@ public class Manager {
|
|
|
func URLSession(session: NSURLSession!, task: NSURLSessionTask!, didCompleteWithError error: NSError!) {
|
|
|
if let delegate = self[task] {
|
|
|
delegate.URLSession(session, task: task, didCompleteWithError: error)
|
|
|
+
|
|
|
+ self[task] = nil
|
|
|
}
|
|
|
}
|
|
|
|