1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

NetQueue TryDequeue signature change

This commit is contained in:
lidgren
2010-09-05 10:37:39 +00:00
parent 61436efa7b
commit 1cf64dc015
6 changed files with 54 additions and 30 deletions

View File

@@ -228,8 +228,8 @@ namespace Lidgren.Network
if (m_throttleDebt >= throttleThreshold)
break;
NetSending send = m_unsentMessages.TryDequeue();
if (send == null)
NetSending send;
if (!m_unsentMessages.TryDequeue(out send))
continue;
send.NumSends++;