Browse files

Don't freak out if the app exits; add more stuff to .gitignore.

  • Loading branch information...
1 parent 640471d commit 50438580e99a392b5564fd19f1037e2ffce394b1 Jim Puls committed May 25, 2011
Showing with 8 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +6 −2 Simulator.m
View
2 .gitignore
@@ -1 +1,3 @@
build
+*.xcworkspace
+xcuserdata
View
8 Simulator.m
@@ -124,8 +124,12 @@ - (void)session:(DTiPhoneSimulatorSession *)session didStart:(BOOL)started withE
}
- (void)session:(DTiPhoneSimulatorSession *)session didEndWithError:(NSError *)error {
- WaxLog(@"Session ended with error. %@", [error localizedDescription]);
- if ([error code] != 2) exit(EXIT_FAILURE); // if it is a timeout error, that's cool. We are probably rebooting
+ if (error) {
+ WaxLog(@"Session ended with error. %@", [error localizedDescription]);
+ if ([error code] != 2) exit(EXIT_FAILURE); // if it is a timeout error, that's cool. We are probably rebooting
+ } else {
+ exit(EXIT_SUCCESS);
+ }
}
@end

0 comments on commit 5043858

Please sign in to comment.