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> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<AssemblyVersion>1.0.1.0001</AssemblyVersion> <AssemblyVersion>1.0.2.0001</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion> <FileVersion>1.0.0.0</FileVersion>
<RepositoryUrl>https://github.com/GTACOOP-R/GTACoop-R</RepositoryUrl> <RepositoryUrl>https://github.com/GTACOOP-R/GTACoop-R</RepositoryUrl>
</PropertyGroup> </PropertyGroup>

View File

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