Skip to content

Commit

Permalink
corrected a recycle missing
Browse files Browse the repository at this point in the history
  • Loading branch information
dooly123 committed Jan 6, 2025
1 parent d6726cc commit d12a825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using BasisNetworkCore;
using LiteNetLib;
using LiteNetLib.Utils;
using System.Reflection.PortableExecutable;
using System.Runtime.Intrinsics.X86;
using System.Text;
using static Basis.Network.Core.Serializable.SerializableBasis;
using static BasisNetworkPrimitiveCompression;
Expand Down Expand Up @@ -107,6 +105,7 @@ private static void NetworkReceiveEvent(NetPeer peer, NetPacketReader Reader, by
SSM.avatarSerialization.Serialize(Writer);
LocalPLayer.Send(Writer, BasisNetworkCommons.MovementChannel, deliveryMethod);
NetDataWriterPool.ReturnWriter(Writer);
Reader.Recycle();
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Basis Server/LiteNetLib/NetManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_2018_3_OR_NEWER
#if UNITY_2018_3_OR_NEWER
#define UNITY_SOCKET_FIX
#endif
using System;
Expand Down

0 comments on commit d12a825

Please sign in to comment.