maybe fix for an issue that should not exist

This commit is contained in:
RaidMax 2023-04-15 16:49:34 -05:00
parent b022b08bc7
commit 75b93bb972

View File

@ -172,7 +172,10 @@ namespace SharedLibraryCore
/// <returns></returns>
public List<EFClient> GetClientsAsList()
{
return Clients.FindAll(x => x != null && x.NetworkId != 0);
lock (Clients)
{
return Clients.FindAll(client => client is not null && client.NetworkId != 0);
}
}
/// <summary>