tweak game interface values again

This commit is contained in:
RaidMax
2022-03-02 08:28:41 -06:00
parent a4c3f9c2d1
commit 55b0caf900
2 changed files with 13 additions and 3 deletions

View File

@ -391,7 +391,7 @@ namespace SharedLibraryCore
public string[] ExecuteServerCommand(string command)
{
var tokenSource = new CancellationTokenSource();
tokenSource.CancelAfter(TimeSpan.FromSeconds(5));
tokenSource.CancelAfter(TimeSpan.FromSeconds(0.5));
try
{
@ -406,7 +406,7 @@ namespace SharedLibraryCore
public string GetServerDvar(string dvarName)
{
var tokenSource = new CancellationTokenSource();
tokenSource.CancelAfter(TimeSpan.FromSeconds(5));
tokenSource.CancelAfter(TimeSpan.FromSeconds(0.5));
try
{
return this.GetDvarAsync<string>(dvarName, token: tokenSource.Token).GetAwaiter().GetResult().Value;
@ -420,7 +420,7 @@ namespace SharedLibraryCore
public bool SetServerDvar(string dvarName, string dvarValue)
{
var tokenSource = new CancellationTokenSource();
tokenSource.CancelAfter(TimeSpan.FromSeconds(5));
tokenSource.CancelAfter(TimeSpan.FromSeconds(0.5));
try
{
this.SetDvarAsync(dvarName, dvarValue, tokenSource.Token).GetAwaiter().GetResult();