From b7fb8dc8e643697732c41303d485149deb41daf0 Mon Sep 17 00:00:00 2001 From: DJGosnell Date: Sun, 17 Sep 2023 22:56:12 -0400 Subject: [PATCH] Fixed operation order. --- src/NexNet/Cache/ListPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NexNet/Cache/ListPool.cs b/src/NexNet/Cache/ListPool.cs index 96ccdfc..749f324 100644 --- a/src/NexNet/Cache/ListPool.cs +++ b/src/NexNet/Cache/ListPool.cs @@ -13,8 +13,8 @@ internal static class ListPool public static void Return(List list) { - list.Capacity = 0; list.Clear(); + list.Capacity = 0; _pool.Add(list); }