Compare commits
6 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
d02e624bc9 | |
|
|
bbf87829ec | |
|
|
86a870d0d1 | |
|
|
4525951e5c | |
|
|
32d4330195 | |
|
|
a3d8b06975 |
|
|
@ -369,16 +369,15 @@ static void PopulateOptionsWithDefault(STKAutoRecoveringHTTPDataSourceOptions* o
|
||||||
[self.delegate dataSourceEof:self];
|
[self.delegate dataSourceEof:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void) dataSourceErrorOccured:(STKDataSource*)dataSource
|
- (void)dataSourceErrorOccured:(STKDataSource*)dataSource {
|
||||||
{
|
|
||||||
NSLog(@"dataSourceErrorOccured");
|
NSLog(@"dataSourceErrorOccured");
|
||||||
|
|
||||||
if (self.innerDataSource.httpStatusCode == 416 /* Range out of bounds */)
|
/* Range out of bounds */
|
||||||
{
|
if (self.innerDataSource.httpStatusCode == 416) {
|
||||||
[super dataSourceEof:dataSource];
|
[super dataSourceEof:dataSource];
|
||||||
}
|
} else if ([self hasGotNetworkConnection]) {
|
||||||
else
|
[super dataSourceErrorOccured:dataSource];
|
||||||
{
|
} else {
|
||||||
[self processRetryOnError];
|
[self processRetryOnError];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue