Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moved unregister notification to end of block

  • Loading branch information...
commit 5fead4925284122c817d4eba283ab0455268beb5 1 parent c0c687c
@eriksundin eriksundin authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 AFOAuth1Client/AFOAuth1Client.m
View
7 AFOAuth1Client/AFOAuth1Client.m
@@ -285,9 +285,6 @@ - (void)authorizeUsingOAuthWithRequestTokenPath:(NSString *)requestTokenPath
queue:[NSOperationQueue mainQueue]
usingBlock:^(NSNotification *notification) {
- // Unregister from further notifications.
- [self unregisterFromApplicationLaunchNotifications];
-
NSURL *url = [[notification userInfo] valueForKey:kAFApplicationLaunchOptionsURLKey];
currentRequestToken.verifier = [AFParametersFromQueryString([url query]) valueForKey:@"oauth_verifier"];
@@ -303,6 +300,10 @@ - (void)authorizeUsingOAuthWithRequestTokenPath:(NSString *)requestTokenPath
failure(error);
}
}];
+
+ // Unregister from further notifications.
+ [self unregisterFromApplicationLaunchNotifications];
+
}];
NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
Please sign in to comment.
Something went wrong with that request. Please try again.