fix issue with counting plugin tasks causing them to be executed. why ms?
This commit is contained in:
parent
0cabf6f8a3
commit
6aa6af526a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user