From: Jay Freeman (saurik) Date: Thu, 4 Nov 2010 12:53:54 +0000 (-0700) Subject: You can't go doing awesome UIKit stuff from the JavaScript thread. X-Git-Tag: v1.0.3366~80 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/46c46f4fe6dd945ea8d0040c9833ecd3af572f87 You can't go doing awesome UIKit stuff from the JavaScript thread. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 1772f17b..bccf5b28 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3997,10 +3997,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } } -- (id) invokeDefaultMethodWithArguments:(NSArray *)args { +- (void) _doContinue { [self dismissModalViewControllerAnimated:YES]; [delegate_ cancelAndClear:NO]; +} +- (id) invokeDefaultMethodWithArguments:(NSArray *)args { + [self performSelectorOnMainThread:@selector(_doContinue) withObject:nil waitUntilDone:NO]; return nil; }