prevent waiting for response on quit command

This commit is contained in:
RaidMax 2022-07-06 09:55:06 -05:00
parent 57484690b6
commit 6abbcbe464

View File

@ -64,6 +64,7 @@ namespace IW4MAdmin.Application.RConParsers
const string mapRotateCommand = "map_rotate"; const string mapRotateCommand = "map_rotate";
const string mapCommand = "map"; const string mapCommand = "map";
const string fastRestartCommand = "fast_restart"; const string fastRestartCommand = "fast_restart";
const string quitCommand = "quit";
foreach (var command in new[] { mapRotateCommand, mapCommand, fastRestartCommand}) foreach (var command in new[] { mapRotateCommand, mapCommand, fastRestartCommand})
{ {
@ -72,6 +73,11 @@ namespace IW4MAdmin.Application.RConParsers
OverrideCommandTimeouts.Add(command, 45); OverrideCommandTimeouts.Add(command, 45);
} }
} }
if (!OverrideCommandTimeouts.ContainsKey(quitCommand))
{
OverrideCommandTimeouts.Add(quitCommand, 0); // we don't want to wait for a response when we quit the server
}
} }
} }
} }