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

@ -3039,9 +3039,17 @@ namespace Server
{
SetFlag( ImplFlag.InQueue, true );
if (_processing)
Console.WriteLine(new System.Diagnostics.StackTrace());
m_DeltaQueue.Add( this );
if (_processing) {
try {
using (StreamWriter op = new StreamWriter("delta-recursion.log", true)) {
op.WriteLine("# {0}", DateTime.UtcNow);
op.WriteLine(new System.Diagnostics.StackTrace());
op.WriteLine();
}
} catch { }
} else {
m_DeltaQueue.Add(this);
}
}
Core.Set();
@ -3055,9 +3063,17 @@ namespace Server
{
SetFlag( ImplFlag.InQueue, false );
if (_processing)
Console.WriteLine(new System.Diagnostics.StackTrace());
m_DeltaQueue.Remove( this );
if (_processing) {
try {
using (StreamWriter op = new StreamWriter("delta-recursion.log", true)) {
op.WriteLine("# {0}", DateTime.UtcNow);
op.WriteLine(new System.Diagnostics.StackTrace());
op.WriteLine();
}
} catch { }
} else {
m_DeltaQueue.Remove( this );
}
}
}