diff options
| author | Chaouki Dhib <chaodhib@gmail.com> | 2019-04-15 23:44:57 +0200 |
|---|---|---|
| committer | Chaouki Dhib <chaodhib@gmail.com> | 2019-04-15 23:47:23 +0200 |
| commit | 50d32fe49386598c7cd876e51cf02478669cc252 (patch) | |
| tree | 504c71a0866cf145365af4b23fa3342c3b18697b /src | |
| parent | 975f1e364a6a68be2beca261a64ea8aecc16f6f6 (diff) | |
Core/Movement: fix mistake in previous commit
975f1e364a6a68be2beca261a64ea8aecc16f6f6
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Server/WorldSocket.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 7fc21b64053..8b0c01db8ce 100644 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -355,14 +355,12 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler() TC_LOG_ERROR("network", "WorldSocket::ReadDataHandler(): client %s sent malformed CMSG_AUTH_SESSION", GetRemoteIpAddress().to_string().c_str()); return ReadDataHandlerResult::Error; } - case CMSG_KEEP_ALIVE: + case CMSG_KEEP_ALIVE: // todo: handle this packet in the same way of CMSG_TIME_SYNC_RESP sessionGuard.lock(); LogOpcodeText(opcode, sessionGuard); if (_worldSession) _worldSession->ResetTimeOutTime(true); - break; - - // todo: handle this packet in the same way of CMSG_TIME_SYNC_RESP + return ReadDataHandlerResult::Ok; case CMSG_TIME_SYNC_RESP: packetToQueue = new WorldPacket(std::move(packet), std::chrono::steady_clock::now()); |
