All pastes #976660 Raw Edit

Someone

public text v1 · immutable
·published 2008-04-08 10:44 UTC
rendered paste body
Index: 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);
 }