From 919d11cf215566e8c7fb2a3f4b5ecae41dee326a Mon Sep 17 00:00:00 2001 From: Ty Conner Date: Tue, 17 Dec 2024 20:50:17 -0500 Subject: [PATCH] Update DatabaseManager.cs --- Source/ACE.Database/DatabaseManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ACE.Database/DatabaseManager.cs b/Source/ACE.Database/DatabaseManager.cs index 442968f646..b9d989d308 100644 --- a/Source/ACE.Database/DatabaseManager.cs +++ b/Source/ACE.Database/DatabaseManager.cs @@ -1,5 +1,5 @@ using System; -using System.Collections.Generic; +using System.Collections.Concurrent; using Microsoft.EntityFrameworkCore; @@ -73,7 +73,7 @@ public static void Stop() serializedShardDb.Stop(); } - private static readonly Dictionary cachedServerVersions = new(); + private static readonly ConcurrentDictionary cachedServerVersions = new(); public static ServerVersion CachedServerVersionAutoDetect(string database, string connectionString) {