From 90e847a495c097b1b3e79d6075d15c58388e91a7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 7 Dec 2010 02:23:33 -0800 Subject: [PATCH] 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 ec4ba25d..74ec4d22 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 /* }}} */ -- 2.47.2