From 03021a62654e117ac8047e9898a357a7af39c61d Mon Sep 17 00:00:00 2001 From: MaxXor Date: Tue, 26 Jul 2016 21:24:01 +0200 Subject: [PATCH] Minor change --- Server/Core/Networking/Utilities/PooledBufferManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Server/Core/Networking/Utilities/PooledBufferManager.cs b/Server/Core/Networking/Utilities/PooledBufferManager.cs index cbbe5bb7..a83abba1 100644 --- a/Server/Core/Networking/Utilities/PooledBufferManager.cs +++ b/Server/Core/Networking/Utilities/PooledBufferManager.cs @@ -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