mirror of https://github.com/quasar/Quasar.git
Minor change
This commit is contained in:
parent
9faec9bb9d
commit
03021a6265
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
|
||||
namespace xServer.Core.Networking.Utilities
|
||||
{
|
||||
|
@ -148,7 +147,7 @@ public byte[] GetBuffer()
|
|||
private byte[] AllocateNewBuffer()
|
||||
{
|
||||
byte[] newBuffer = new byte[_bufferLength];
|
||||
Interlocked.Increment(ref _bufferCount);
|
||||
_bufferCount++;
|
||||
OnNewBufferAllocated(EventArgs.Empty);
|
||||
|
||||
return newBuffer;
|
||||
|
@ -239,7 +238,7 @@ public int DecreaseBufferCount(int buffersToRemove)
|
|||
_bufferCount--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return numRemoved;
|
||||
}
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue