fix issue with counting plugin tasks causing them to be executed. why ms?

This commit is contained in:
RaidMax 2020-05-17 17:01:13 -05:00
parent 0cabf6f8a3
commit 6aa6af526a

View File

@ -198,9 +198,9 @@ namespace IW4MAdmin
Logger.WriteError($"{loc["SERVER_PLUGIN_ERROR"]} [{_plugin.Name}]"); Logger.WriteError($"{loc["SERVER_PLUGIN_ERROR"]} [{_plugin.Name}]");
Logger.WriteDebug(Except.GetExceptionInfo()); Logger.WriteDebug(Except.GetExceptionInfo());
} }
}); }).ToArray();
if (pluginTasks.Count() > 0) if (pluginTasks.Any())
{ {
await Task.WhenAny(pluginTasks); await Task.WhenAny(pluginTasks);
} }