prevent waiting for response on quit command
This commit is contained in:
parent
57484690b6
commit
6abbcbe464
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user