From f32266dfe825b08a970eff3b5691e268975c139a Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 17 May 2020 17:01:13 -0500 Subject: [PATCH] fix issue with counting plugin tasks causing them to be executed. why ms? --- Application/IW4MServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/IW4MServer.cs b/Application/IW4MServer.cs index e91542f9..0e132629 100644 --- a/Application/IW4MServer.cs +++ b/Application/IW4MServer.cs @@ -198,9 +198,9 @@ namespace IW4MAdmin Logger.WriteError($"{loc["SERVER_PLUGIN_ERROR"]} [{_plugin.Name}]"); Logger.WriteDebug(Except.GetExceptionInfo()); } - }); + }).ToArray(); - if (pluginTasks.Count() > 0) + if (pluginTasks.Any()) { await Task.WhenAny(pluginTasks); }