Small server changes

This commit is contained in:
EntenKoeniq
2021-12-13 14:03:24 +01:00
parent 2d441f7fb3
commit 1f963cb39e
2 changed files with 10 additions and 6 deletions

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<AssemblyVersion>1.0.1.0001</AssemblyVersion>
<AssemblyVersion>1.0.2.0001</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<RepositoryUrl>https://github.com/GTACOOP-R/GTACoop-R</RepositoryUrl>
</PropertyGroup>

View File

@ -138,18 +138,22 @@ namespace CoopServer
if (errorCounter != 0)
{
Logging.Error($"MasterServer: Remaining attempts {errorCounter--} ...");
// Wait 5 seconds before trying again
Thread.Sleep(5000);
continue;
}
break;
}
else
{
// Reset errorCounter
errorCounter = 3;
// Sleep for 12.5s
Thread.Sleep(12500);
}
}
}
catch (Exception ex)
{
Logging.Error($"MasterServer: {ex.Message}");