From: Jay Freeman (saurik) Date: Sat, 19 Feb 2011 14:11:20 +0000 (-0800) Subject: For safety's sake, let's addTrivialSources: on the main thread. X-Git-Tag: v1.1.0%b1~295 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/a1d85d421fcc2a6eca784ddbcef8a03280189f9c For safety's sake, let's addTrivialSources: on the main thread. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 607cfcb9..22c6db49 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3951,7 +3951,7 @@ static NSString *Warning_; } - (void) addTrivialSource:(NSString *)href { - [delegate_ addTrivialSource:href]; + [delegate_ performSelectorOnMainThread:@selector(addTrivialSource:) withObject:href waitUntilDone:NO]; } - (void) refreshSources {