From 529bf4742d19640208398bc0e56f2a1b7a34360a Mon Sep 17 00:00:00 2001 From: false_genesis Date: Mon, 11 Feb 2008 18:04:40 +0000 Subject: [PATCH] * re-throwing a ByteBufferException is not a good idea... --- src/Client/World/WorldSession.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Client/World/WorldSession.cpp b/src/Client/World/WorldSession.cpp index fe0fa9b..3b8cb04 100644 --- a/src/Client/World/WorldSession.cpp +++ b/src/Client/World/WorldSession.cpp @@ -196,7 +196,10 @@ void WorldSession::HandleWorldPacket(WorldPacket *packet) logerror("WorldSession: ByteBufferException"); logerror("ByteBuffer reported: attempt to \"%s\" %u bytes at position %u out of total %u bytes. (wpos=%u)", bbe.action, bbe.readsize, bbe.rpos, bbe.cursize, bbe.wpos); - throw; + // copied from below + logerror("Data: pktsize=%u, handler=0x%X queuesize=%u",packet->size(),table[hpos].handler,pktQueue.size()); + logerror("Packet Hexdump:"); + logerror("%s",toHexDump((uint8*)packet->contents(),packet->size(),true).c_str()); } catch (...) {