File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
# v4.5.0
2
2
- [ fixed] Fixed a compiler warning and removed unused networking code (#6210 ).
3
+ - [ fixed] Fixed a crash that occurred rarely when trying to restart a URL session task without a valid request (#5984 ).
3
4
- [ added] Introduced watchOS support (#6262 ).
4
5
5
6
# v4.3.1
Original file line number Diff line number Diff line change @@ -296,6 +296,12 @@ - (void)runAfterRetryValueFromResponse:(NSURLResponse *)response block:(void (^)
296
296
- (void )restartTask : (NSURLSessionTask *)task {
297
297
NSURLRequest *request = [task originalRequest ];
298
298
299
+ if (request == nil ) {
300
+ FIRCLSWarningLog (@" Unable to restart task: Could not retrieve original request from task %@ " ,
301
+ task);
302
+ return ;
303
+ }
304
+
299
305
[self runAfterRetryValueFromResponse: [task response ]
300
306
block: ^{
301
307
NSString *path = [self
You can’t perform that action at this time.
0 commit comments