Skip to content

Commit 2cb5bab

Browse files
author
Rene Jochum
committedJul 18, 2011
Lobby: set the right authentication flag on logouts.
1 parent 7dbf108 commit 2cb5bab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎lib/netplay/netlobby.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -445,18 +445,18 @@ RETURN_CODES Client::logout()
445445
freeError();
446446
}
447447

448-
// Clear auth data.
449-
useAuth_ = false;
450-
user_.clear();
451-
token_.clear();
452-
session_.clear();
453-
454448
// Tell the lobby that we want to logout.
455449
if (call_("logout") != LOBBY_NO_ERROR)
456450
{
457451
return lastError_.code;
458452
}
459453

454+
// Clear auth data.
455+
isAuthenticated_ = false;
456+
user_.clear();
457+
token_.clear();
458+
session_.clear();
459+
460460
freeCallResult_();
461461
return LOBBY_NO_ERROR;
462462
}

0 commit comments

Comments
 (0)
Please sign in to comment.