fix packet throttling with handler overlay
This commit is contained in:
parent
d5ebe946e9
commit
4915268e43
3 changed files with 17 additions and 18 deletions
|
|
@ -251,6 +251,19 @@ namespace Server.Network
|
|||
m_EncodedHandlersHigh.Remove( packetID );
|
||||
}
|
||||
|
||||
public static void RegisterThrottler( int packetID, ThrottlePacketCallback t )
|
||||
{
|
||||
PacketHandler ph = GetHandler( packetID );
|
||||
|
||||
if ( ph != null )
|
||||
ph.ThrottleCallback = t;
|
||||
|
||||
ph = Get6017Handler( packetID );
|
||||
|
||||
if ( ph != null )
|
||||
ph.ThrottleCallback = t;
|
||||
}
|
||||
|
||||
private static void UnhandledBF( NetState state, PacketReader pvSrc )
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue