Skip to content

Commit

Permalink
Fix NSURLErrorDomain error -999.
Browse files Browse the repository at this point in the history
Since networking isn't always up when we refresh a list in -viewWillAppear:, we
also refresh when network reachability changes. If this happens quick enough,
we could end up refreshing a second time before the first refresh is done. Now
we only refresh on reachability changes if we're not already refreshing.
  • Loading branch information
nolanw committed Jan 31, 2013
1 parent 4e30981 commit 750d52d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ @implementation AwfulFetchedTableViewController

- (void)reachabilityChanged:(NSNotification *)note
{
if ([self refreshOnAppear]) [self refresh];
if (!self.refreshing && [self refreshOnAppear]) [self refresh];
}

- (void)viewDidLoad
Expand Down

0 comments on commit 750d52d

Please sign in to comment.