missing lock
This commit is contained in:
parent
855b6463ca
commit
3c1bc12829
1 changed files with 7 additions and 4 deletions
|
|
@ -1637,14 +1637,17 @@ namespace Server
|
|||
set{ SetFlag( ImplFlag.Stackable, value ); }
|
||||
}
|
||||
|
||||
private object _rpl = new object();
|
||||
|
||||
public Packet RemovePacket
|
||||
{
|
||||
get
|
||||
{
|
||||
if ( m_RemovePacket == null )
|
||||
{
|
||||
m_RemovePacket = new RemoveItem( this );
|
||||
m_RemovePacket.SetStatic();
|
||||
lock (_rpl) {
|
||||
if ( m_RemovePacket == null ) {
|
||||
m_RemovePacket = new RemoveItem( this );
|
||||
m_RemovePacket.SetStatic();
|
||||
}
|
||||
}
|
||||
|
||||
return m_RemovePacket;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue