]> git.saurik.com Git - cydia.git/commitdiff
For safety's sake, let's addTrivialSources: on the main thread.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 14:11:20 +0000 (06:11 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 14:11:20 +0000 (06:11 -0800)
MobileCydia.mm

index 607cfcb9c6f513785c21c6e8314a8d406efc42b1..22c6db4948e36e6a634f98f3e1791590eb7cdd41 100644 (file)
@@ -3951,7 +3951,7 @@ static NSString *Warning_;
 }
 
 - (void) addTrivialSource:(NSString *)href {
-    [delegate_ addTrivialSource:href];
+    [delegate_ performSelectorOnMainThread:@selector(addTrivialSource:) withObject:href waitUntilDone:NO];
 }
 
 - (void) refreshSources {