Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix minor problems with failed loading.

  • Loading branch information...
commit db4a748c4d8d6037a9fca9a2448d5b54208c0273 1 parent 841aadd
@btrask btrask authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 PGNode.m
  2. +1 −1  PGWebAdapter.m
View
4 PGNode.m
@@ -144,9 +144,9 @@ - (void)fallbackFromFailedAdapter:(PGResourceAdapter *)adapter
NSParameterAssert(PGNodeLoading & _status);
NSParameterAssert(adapter == _adapter);
[self _setResourceAdapter:[_potentialAdapters lastObject]];
+ if(![_potentialAdapters count]) return [self _stopLoading];
[_potentialAdapters removeLastObject];
- if(_adapter) [_adapter loadIfNecessary];
- else [self _stopLoading];
+ [_adapter loadIfNecessary];
}
#pragma mark -
View
2  PGWebAdapter.m
@@ -115,7 +115,7 @@ - (void)loadDidReceiveResponse:(PGURLLoad *)sender
if([potentialAdapterClasses count]) return;
[_mainLoad cancelAndNotify:NO];
[_faviconLoad cancelAndNotify:NO];
- [[self node] setDataProvider:potentialDataProvider];
+ [[self node] fallbackFromFailedAdapter:self];
}
- (void)loadDidSucceed:(PGURLLoad *)sender
{
Please sign in to comment.
Something went wrong with that request. Please try again.