Skip to content

Commit

Permalink
Fixed operation order.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJGosnell committed Sep 18, 2023
1 parent bfb791b commit b7fb8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NexNet/Cache/ListPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ internal static class ListPool<T>

public static void Return(List<T> list)
{
list.Capacity = 0;
list.Clear();
list.Capacity = 0;
_pool.Add(list);
}

Expand Down

0 comments on commit b7fb8dc

Please sign in to comment.