From 3121443aa805f1f89fc6b81b4957fe4d0aedd692 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 7 Dec 2010 02:23:33 -0800 Subject: Add database lock @synchronized to -[ChangesController reloadData]. --- MobileCydia.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index ec4ba25..74ec4d2 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7556,6 +7556,7 @@ freeing the view controllers on tab change */ } - (void) reloadData { +@synchronized (database_) { era_ = [database_ era]; NSArray *packages = [database_ packages]; @@ -7648,7 +7649,7 @@ freeing the view controllers on tab change */ target:self action:@selector(refreshButtonClicked) ] autorelease]]; -} +} } @end /* }}} */ -- cgit v1.2.3