Fixed SPUDownloader getting leaked because the NSURLSession wasn't being invalidated

This commit is contained in:
Kent Sutherland committed 2018-02-15 22:52:20 -06:00
1 parent ad506261ee
commit 3bf3096369
1 file changed
+1
+1
View File
@@ -115,6 +115,7 @@ static NSString *SUDownloadingReason = @"Downloading update related file";
{
[self enableAutomaticTermination];
[self.download cancel];
[self.downloadSession invalidateAndCancel];
self.download = nil;
self.downloadSession = nil;
self.delegate = nil;