summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-07 02:23:33 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-01-01 14:32:06 -0800
commit3121443aa805f1f89fc6b81b4957fe4d0aedd692 (patch)
treeda2fb035ebfda602e7c063cd69066150d07427a9 /MobileCydia.mm
parentd3aa466c92e3677aca0d4e7adff3bdcba1a00030 (diff)
Add database lock @synchronized to -[ChangesController reloadData].
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm3
1 files changed, 2 insertions, 1 deletions
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
/* }}} */