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

@ -772,6 +772,9 @@ namespace Server.Network {
lock ( m_SendQueue ) {
gram = m_SendQueue.Dequeue();
if (gram == null && m_SendQueue.IsFlushReady)
gram = m_SendQueue.CheckFlushReady();
}
if ( gram != null ) {
@ -943,6 +946,9 @@ namespace Server.Network {
lock (m_SendQueue) {
gram = m_SendQueue.Dequeue();
if (gram == null && m_SendQueue.IsFlushReady)
gram = m_SendQueue.CheckFlushReady();
}
if (gram != null) {