From: Jay Freeman (saurik) Date: Tue, 15 Mar 2011 17:44:45 +0000 (-0700) Subject: Add a lock around configuration saving to the metafile. X-Git-Tag: v1.1.0%rc1~89 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/9ac1ef9e7cedfafadf03b3c9defb7a9e581d9553 Add a lock around configuration saving to the metafile. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 2646549c..6555d3c4 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8964,9 +8964,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) _saveConfig { - _trace(); - MetaFile_.Sync(); - _trace(); + @synchronized (database_) { + _trace(); + MetaFile_.Sync(); + _trace(); + } if (Changed_) { NSString *error(nil);