From 75b93bb9726971bdd645af07e6d9d8c5585be885 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 15 Apr 2023 16:49:34 -0500 Subject: [PATCH] maybe fix for an issue that should not exist --- SharedLibraryCore/Server.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SharedLibraryCore/Server.cs b/SharedLibraryCore/Server.cs index 3062e064d..d78182813 100644 --- a/SharedLibraryCore/Server.cs +++ b/SharedLibraryCore/Server.cs @@ -172,7 +172,10 @@ namespace SharedLibraryCore /// public List GetClientsAsList() { - return Clients.FindAll(x => x != null && x.NetworkId != 0); + lock (Clients) + { + return Clients.FindAll(client => client is not null && client.NetworkId != 0); + } } ///