rendered paste bodyIndex: src/game/WorldSession.cpp
===================================================================
--- src/game/WorldSession.cpp (revision 5572)
+++ src/game/WorldSession.cpp (working copy)
@@ -494,8 +494,6 @@
/// Send a packet to the client
void WorldSession::SendPacket(WorldPacket* packet)
{
- if (!_socket)
- return;
#ifdef MANGOS_DEBUG
// Code for network use statistic
static uint64 sendPacketCount = 0;
@@ -529,7 +527,7 @@
sendLastPacketBytes = packet->wpos(); // wpos is real written size
}
#endif // !MANGOS_DEBUG
-
+ if(_socket)
_socket->SendPacket(packet);
}