From: Jay Freeman (saurik) Date: Tue, 7 Dec 2010 10:23:33 +0000 (-0800) Subject: Add database lock @synchronized to -[ChangesController reloadData]. X-Git-Tag: v1.1.0%b1~394 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/3121443aa805f1f89fc6b81b4957fe4d0aedd692 Add database lock @synchronized to -[ChangesController reloadData]. --- 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 /* }}} */