Skip to content

Commit

Permalink
Lobby: set the right authentication flag on logouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Jochum committed Jul 18, 2011
1 parent 7dbf108 commit 2cb5bab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/netplay/netlobby.cpp
Expand Up @@ -445,18 +445,18 @@ RETURN_CODES Client::logout()
freeError();
}

// Clear auth data.
useAuth_ = false;
user_.clear();
token_.clear();
session_.clear();

// Tell the lobby that we want to logout.
if (call_("logout") != LOBBY_NO_ERROR)
{
return lastError_.code;
}

// Clear auth data.
isAuthenticated_ = false;
user_.clear();
token_.clear();
session_.clear();

freeCallResult_();
return LOBBY_NO_ERROR;
}
Expand Down

0 comments on commit 2cb5bab

Please sign in to comment.