diff options
Diffstat (limited to 'src/game/WorldSession.cpp')
| -rw-r--r-- | src/game/WorldSession.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index 30688b7e915..3724d58b63d 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -180,7 +180,7 @@ bool WorldSession::Update(uint32 /*diff*/) LookupOpcodeName(packet->GetOpcode()), packet->GetOpcode()); #endif*/ - + if (packet->GetOpcode() >= NUM_MSG_TYPES) { sLog.outError("SESSION: received non-existed opcode %s (0x%.4X)", @@ -287,10 +287,10 @@ bool WorldSession::Update(uint32 /*diff*/) if (!m_Socket || (ShouldLogOut(currTime) && !m_playerLoading)) LogoutPlayer(true); - ///- If necessary, kick the player from the character select screen + ///- If necessary, kick the player from the character select screen if (IsConnectionIdle()) return false; - + if (!m_Socket) return false; //Will remove this session from the world session map |
