Merge pull request #214 from ghinwallc/bug-fix/use-existing-nsurlsessiontaskdelegate-method

Use existing NSURLSessionTaskDelegate method
This commit is contained in:
Chris Dell 2017-01-14 22:39:22 +00:00 committed by GitHub
commit e212728104
1 changed files with 2 additions and 2 deletions

View File

@ -100,9 +100,9 @@
return _params.completeCallback(_statusCode, _bytesWritten);
}
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionTask *)downloadTask didCompleteWithError:(NSError *)error
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
{
return _params.errorCallback(error);
return error ? _params.errorCallback(error) : nil;
}
- (void)stopDownload