Made NetState.Send virtual.
Lifespan of Packet.UnderlyingStream extended until Packet.Release (previously was freed in Packet.Compile).
This commit is contained in:
parent
e9b696064f
commit
9dd4c1d37b
2 changed files with 7 additions and 4 deletions
|
|
@ -482,7 +482,7 @@ namespace Server.Network
|
|||
m_CreatedCallback( this );
|
||||
}
|
||||
|
||||
public void Send( Packet p )
|
||||
public virtual void Send( Packet p )
|
||||
{
|
||||
if ( m_Socket == null || m_BlockAllPackets )
|
||||
{
|
||||
|
|
@ -730,7 +730,7 @@ namespace Server.Network
|
|||
|
||||
private bool m_Disposing;
|
||||
|
||||
public void Dispose( bool flush )
|
||||
public virtual void Dispose( bool flush )
|
||||
{
|
||||
if ( m_Socket == null || m_Disposing )
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue