(potentially) fixed object disposed issue with semaphore

fix random issue where we were trying to reset a session for a player that has not fully connected
This commit is contained in:
RaidMax
2019-12-26 18:17:49 -06:00
parent c9e6ce0bca
commit 042fde971e
3 changed files with 7 additions and 8 deletions

View File

@ -1072,7 +1072,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
foreach (var stat in sv.GetClientsAsList()
.Select(_client => _client.GetAdditionalProperty<EFClientStatistics>(CLIENT_STATS_KEY)))
{
stat.StartNewSession();
stat?.StartNewSession();
}
}