Browse Source

Sleep before reloading, give the ui time to update

Sticktron 8 years ago
parent
commit
356079a936
1 changed files with 2 additions and 8 deletions
  1. 2 8
      g0blin/ViewController.m

+ 2 - 8
g0blin/ViewController.m

@@ -166,18 +166,12 @@ static uint64_t kbase;
 
 
     [self.goButton setTitle:@"jailbroke yo!" forState:UIControlStateDisabled];
     [self.goButton setTitle:@"jailbroke yo!" forState:UIControlStateDisabled];
     
     
+    sleep(2);
     
     
-    // start launchdaemons ...
-    
+    // start launchdaemons ...    
     LOG("reloading...");
     LOG("reloading...");
     pid_t pid;
     pid_t pid;
     posix_spawn(&pid, "/bin/launchctl", 0, 0, (char**)&(const char*[]){"/bin/launchctl", "load", "/Library/LaunchDaemons/0.reload.plist", NULL}, NULL);
     posix_spawn(&pid, "/bin/launchctl", 0, 0, (char**)&(const char*[]){"/bin/launchctl", "load", "/Library/LaunchDaemons/0.reload.plist", NULL}, NULL);
-    
-    //    LOG("starting dropbear...");
-    //    posix_spawn(&pid, "/bin/launchctl", 0, 0, (char**)&(const char*[]){"/bin/launchctl", "load", "/Library/LaunchDaemons/dropbear.plist", NULL}, NULL);
-    
-    sleep(2);
-    
 }
 }
 
 
 @end
 @end