Permalink
Browse files

Merge pull request #51 from forcedotcom/remove_oauth_concurrency_check

Removing auth 'concurrency' checks.
  • Loading branch information...
2 parents 516ed58 + 0dc2e5b commit 2d758a86eb691657354cca1a0388cbe252cade9c @tstellanova-sfdc tstellanova-sfdc committed Apr 10, 2012
@@ -206,14 +206,6 @@ - (void)authenticate:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)o
NSLog(@"authenticate:withDict:");
NSString *callbackId = [arguments pop];
- //Verify that we're not already authenticating
- if (nil != _authCallbackId) {
- NSString *errorMessage = @"Authentication is already in progress.";
- PluginResult *pluginResult = [PluginResult resultWithStatus:PGCommandStatus_ERROR messageAsString:errorMessage];
- [self writeJavascript:[pluginResult toErrorCallbackString:callbackId]];
- return;
- }
-
_authCallbackId = [callbackId copy];
NSString *argsString = [arguments pop];
@@ -458,6 +450,9 @@ - (void)fireSessionRefreshEvent:(NSDictionary*)creds
}
- (void)cleanupCoordinator {
+ if (self.coordinator.view) {
+ [self.coordinator.view removeFromSuperview];
+ }
[_coordinator setDelegate:nil];
[_coordinator release];
_coordinator = nil;

0 comments on commit 2d758a8

Please sign in to comment.