From 750d52d8304183829b408853e7925e3dd3ba6006 Mon Sep 17 00:00:00 2001 From: Nolan Waite Date: Wed, 30 Jan 2013 20:37:07 -0400 Subject: [PATCH] Fix NSURLErrorDomain error -999. 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. --- Source/UIKit and Foundation/AwfulFetchedTableViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/UIKit and Foundation/AwfulFetchedTableViewController.m b/Source/UIKit and Foundation/AwfulFetchedTableViewController.m index ae5b2cf27..9a5da4328 100644 --- a/Source/UIKit and Foundation/AwfulFetchedTableViewController.m +++ b/Source/UIKit and Foundation/AwfulFetchedTableViewController.m @@ -27,7 +27,7 @@ @implementation AwfulFetchedTableViewController - (void)reachabilityChanged:(NSNotification *)note { - if ([self refreshOnAppear]) [self refresh]; + if (!self.refreshing && [self refreshOnAppear]) [self refresh]; } - (void)viewDidLoad