From 0fcb0f74e728e4064c157f02a088e60bccfcf6d1 Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 7 Feb 2025 15:43:51 +0000 Subject: [PATCH] Fixed concurrency issue with expired offer ids --- Libraries/Core/Services/RagfairOfferService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Services/RagfairOfferService.cs b/Libraries/Core/Services/RagfairOfferService.cs index 4b8c878f..4516d308 100644 --- a/Libraries/Core/Services/RagfairOfferService.cs +++ b/Libraries/Core/Services/RagfairOfferService.cs @@ -1,11 +1,12 @@ +using System.Collections.Concurrent; using Core.Helpers; -using SptCommon.Annotations; using Core.Models.Eft.Common.Tables; using Core.Models.Eft.Ragfair; using Core.Models.Utils; using Core.Servers; using Core.Utils; using Core.Utils.Cloners; +using SptCommon.Annotations; using SptCommon.Extensions; namespace Core.Services; @@ -26,7 +27,7 @@ public class RagfairOfferService( ) { protected bool _playerOffersLoaded; - protected HashSet _expiredOfferIds = new(); + protected ConcurrentBag _expiredOfferIds = new(); /** * Get all offers