]> git.saurik.com Git - cydia.git/commitdiff
Move setToken: to main thread for Metadata_.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 20 Feb 2011 00:08:16 +0000 (16:08 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 20 Feb 2011 01:01:06 +0000 (17:01 -0800)
MobileCydia.mm

index 8da8f280f3a22314221350bd2bc31a2e34165f86..cdc9a5269859a8d62fae8f8ed71b467293e81cd6 100644 (file)
@@ -4091,7 +4091,7 @@ static NSString *Warning_;
     [indirect_ setButtonTitle:button withStyle:style toFunction:function];
 }
 
-- (void) setToken:(NSString *)token {
+- (void) _setToken:(NSString *)token {
     if (Token_ != nil)
         [Token_ release];
     Token_ = [token retain];
@@ -4100,6 +4100,10 @@ static NSString *Warning_;
     Changed_ = true;
 }
 
+- (void) setToken:(NSString *)token {
+    [self performSelectorOnMainThread:@selector(_setToken:) withObject:token waitUntilDone:NO];
+}
+
 - (void) setPopupHook:(id)function {
     [indirect_ setPopupHook:function];
 }