mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Fixed SPUDownloader getting leaked because the NSURLSession wasn't being invalidated
This commit is contained in:
1 parent
ad506261ee
commit
3bf3096369
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user