summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-24 07:22:01 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-24 07:22:01 -0700
commit0517651feffa64f36d11e5047d607490987508d0 (patch)
treec0e0393639a50c0ea4da21e38932858553c701dc
parent05452929b3bc68847f782787eb10487db3b12a34 (diff)
Add a database lock around -[Database clean].
-rw-r--r--MobileCydia.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index f9c7e38..3472933 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3686,6 +3686,7 @@ class CydiaLogCleaner :
}
- (bool) clean {
+@synchronized (self) {
// XXX: I don't remember this condition
if (lock_ != NULL)
return false;
@@ -3706,7 +3707,7 @@ class CydiaLogCleaner :
return false;
return true;
-}
+} }
- (bool) prepare {
fetcher_->Shutdown();