1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

(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 9629f802e1
commit eaae701f0b
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();
}
}