You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 07:06:30 +09:00
newly introduced ReduceStoragePool bug fixed
This commit is contained in:
@@ -190,7 +190,7 @@ namespace Lidgren.Network
|
||||
reduceTo = m_maxStoredBytes / 2;
|
||||
|
||||
int remove = 0;
|
||||
while (m_storedBytes > reduceTo && m_storagePool.Count > 0)
|
||||
while (m_storedBytes > reduceTo && remove < m_storagePool.Count)
|
||||
{
|
||||
byte[] arr = m_storagePool[0];
|
||||
m_storedBytes -= arr.Length;
|
||||
|
||||
Reference in New Issue
Block a user