From 93d73ac5203e344f67e3f734ab38bc428bc9233d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 29 Feb 2012 20:25:11 +0000 Subject: Fixed the authenticator bug git-svn-id: http://mc-server.googlecode.com/svn/trunk@344 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index f31daf79e..fbbe6b89d 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -261,7 +261,13 @@ void cClientHandle::Kick(const AString & a_Reason) void cClientHandle::Authenticate(void) { + if (m_State != csAuthenticating) + { + return; + } + ASSERT( m_Player == NULL ); + // Spawn player (only serversided, so data is loaded) m_Player = new cPlayer(this, GetUsername()); -- cgit v1.2.3