summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 0c07bbf..9d7881a 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6015,6 +6015,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
- (NSArray *) _reloadPackages:(NSArray *)packages {
+// XXX: maybe move @synchronized() to _reloadData?
+@synchronized (database_) {
NSMutableArray *filtered([NSMutableArray arrayWithCapacity:[packages count]]);
_profile(PackageTable$reloadData$Filter)
@@ -6024,7 +6026,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
_end
return filtered;
-}
+} }
- (void) _reloadData {
if (reloading_ != 0) {