You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 14:46:29 +09:00
Added recycling to a few samples that lacked it
This commit is contained in:
@@ -65,6 +65,7 @@ namespace FileStreamServer
|
||||
}
|
||||
break;
|
||||
}
|
||||
s_server.Recycle(inc);
|
||||
}
|
||||
|
||||
// stream to all connections
|
||||
|
||||
@@ -31,8 +31,8 @@ namespace FileStreamServer
|
||||
if (freeWindowSlots > 0)
|
||||
{
|
||||
// send another part of the file!
|
||||
int remaining = (int)(m_inputStream.Length - m_sentOffset);
|
||||
int sendBytes = (remaining > m_chunkLen ? m_chunkLen : remaining);
|
||||
long remaining = m_inputStream.Length - m_sentOffset;
|
||||
int sendBytes = (remaining > m_chunkLen ? m_chunkLen : (int)remaining);
|
||||
|
||||
// just assume we can read the whole thing in one Read()
|
||||
m_inputStream.Read(m_tmpBuffer, 0, sendBytes);
|
||||
|
||||
Reference in New Issue
Block a user