From d6c371f51efeaede0a3a0f83af43c68d8d50e111 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 17 Feb 2011 17:02:59 -0800 Subject: [PATCH] Cancel refresh during confirmation. --- MobileCydia.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MobileCydia.mm b/MobileCydia.mm index 77fffa87..f5a0eb2d 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8675,6 +8675,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (bool) perform { + // XXX: this is a really crappy way of doing this. + // like, seriously: this state machine is still broken, and cancelling this here doesn't really /fix/ that. + // for one, the user can still /start/ a reloading data event while they have a queue, which is stupid + // for two, this just means there is a race condition between the refresh completing and the confirmation controller appearing. + if ([tabbar_ updating]) + [tabbar_ cancelUpdate]; + if (![database_ prepare]) return false; -- 2.45.2