1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-16 10:09:14 -05:00

support per-command override of rcon timeouts / update t5 parser to reflect

This commit is contained in:
RaidMax
2022-07-01 09:59:11 -05:00
parent 30f4b0a509
commit b422e72c71
6 changed files with 48 additions and 9 deletions

View File

@ -253,8 +253,10 @@ namespace Integrations.Cod
try
{
connectionState.LastQuery = DateTime.Now;
var timeout = _parser.OverrideTimeoutForCommand(parameters);
waitForResponse = waitForResponse && timeout.HasValue;
response = await SendPayloadAsync(payload, waitForResponse,
_parser.OverrideTimeoutForCommand(parameters), token);
timeout ?? TimeSpan.Zero, token);
if ((response?.Length == 0 || response[0].Length == 0) && waitForResponse)
{