Small server changes
This commit is contained in:
@ -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>
|
||||||
|
@ -138,16 +138,20 @@ 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
|
||||||
// Sleep for 12.5s
|
errorCounter = 3;
|
||||||
Thread.Sleep(12500);
|
|
||||||
}
|
// Sleep for 12.5s
|
||||||
|
Thread.Sleep(12500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Reference in New Issue
Block a user