disable standard console in if it has been redirected

This commit is contained in:
RaidMax 2020-06-03 19:45:06 -05:00
parent b8d5495055
commit ba77e0149c

View File

@ -231,6 +231,12 @@ namespace IW4MAdmin.Application
/// <returns></returns>
private static async Task ReadConsoleInput()
{
if (Console.IsInputRedirected)
{
ServerManager.Logger.WriteInfo("Disabling console input as it has been redirected");
return;
}
string lastCommand;
var Origin = Utilities.IW4MAdminClient(ServerManager.Servers[0]);