Minor change

This commit is contained in:
MaxXor 2016-07-26 21:24:01 +02:00
parent 9faec9bb9d
commit 03021a6265
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Threading;
namespace xServer.Core.Networking.Utilities
{
@ -148,7 +147,7 @@ namespace xServer.Core.Networking.Utilities
private byte[] AllocateNewBuffer()
{
byte[] newBuffer = new byte[_bufferLength];
Interlocked.Increment(ref _bufferCount);
_bufferCount++;
OnNewBufferAllocated(EventArgs.Empty);
return newBuffer;