delta recursion protection

flush in send completion
This commit is contained in:
Mark Sturgill 2013-10-12 15:53:29 -07:00
parent 2cac2c55d2
commit 41019b691b
4 changed files with 56 additions and 17 deletions

View file

@ -220,13 +220,15 @@ namespace Server.Network
}
if ( length >= packetLength ) {
if ( handler.Ingame && ns.Mobile == null ) {
Console.WriteLine( "Client: {0}: Sent ingame packet (0x{1:X2}) before having been attached to a mobile", ns, packetID );
ns.Dispose();
break;
} else if ( handler.Ingame && ns.Mobile.Deleted ) {
ns.Dispose();
break;
if (handler.Ingame) {
if (ns.Mobile == null ) {
Console.WriteLine( "Client: {0}: Sent ingame packet (0x{1:X2}) before having been attached to a mobile", ns, packetID );
ns.Dispose();
break;
} else if (ns.Mobile.Deleted) {
ns.Dispose();
break;
}
}
ThrottlePacketCallback throttler = handler.ThrottleCallback;