Skip to content

Commit 86146d9

Browse files
morganchen12paulb777
authored andcommitted
Revert "Merge pull request #1922 from morganchen12/master" (#1930)
This reverts commit eb5ee22, reversing changes made to 4fa5c7b.
1 parent 81fb6a0 commit 86146d9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

GoogleUtilities/Network/GULNetworkURLSession.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ - (NSString *)sessionIDFromAsyncPOSTRequest:(NSURLRequest *)request
128128

129129
if (didWriteFile) {
130130
// Exclude this file from backing up to iTunes. There are conflicting reports that excluding
131-
// directory from backing up does not exclude files of that directory from backing up.
131+
// directory from backing up does not excluding files of that directory from backing up.
132132
[self excludeFromBackupForURL:_uploadingFileURL];
133133

134134
_sessionConfig = [self backgroundSessionConfigWithSessionID:_sessionID];
@@ -240,7 +240,6 @@ - (void)URLSession:(NSURLSession *)session
240240
context:error];
241241
_downloadedData = nil;
242242
}
243-
[session finishTasksAndInvalidate];
244243
}
245244

246245
#if TARGET_OS_IOS || TARGET_OS_TV
@@ -251,7 +250,6 @@ - (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session
251250
message:@"Background session finished"
252251
context:session.configuration.identifier];
253252
[self callSystemCompletionHandler:session.configuration.identifier];
254-
[session finishTasksAndInvalidate];
255253
}
256254
#endif
257255

@@ -286,7 +284,6 @@ - (void)URLSession:(NSURLSession *)session
286284
// Try to clean up stale files again.
287285
[self maybeRemoveTempFilesAtURL:_networkDirectoryURL
288286
expiringTime:kGULNetworkTempFolderExpireTime];
289-
[session finishTasksAndInvalidate];
290287
}
291288

292289
- (void)URLSession:(NSURLSession *)session

0 commit comments

Comments
 (0)