Skip to content

Commit

Permalink
Revert change to FBSession close that would have no-op if state is al…
Browse files Browse the repository at this point in the history
…ready closed.

Summary: Revert change to FBSession close that would have no-op if state is already closed.

Test Plan:
Quickly tested scrumptious on 5.1 and 6.0 login/logout/post.

Revert Plan:

Reviewers: jacl

Reviewed By: jacl

Differential Revision: https://phabricator.fb.com/D588757

Task ID: 1764202
  • Loading branch information
chrisp-fb committed Oct 2, 2012
1 parent 8f18184 commit b631537
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/FBSession.m
Expand Up @@ -404,9 +404,6 @@ - (void)close {
NSAssert(self.affinitizedThread == [NSThread currentThread], @"FBSession: should only be used from a single thread");

FBSessionState state;
if (self.state = FBSessionStateClosed) {
return;
}
if (self.state == FBSessionStateCreatedOpening) {
state = FBSessionStateClosedLoginFailed;
} else {
Expand Down

0 comments on commit b631537

Please sign in to comment.