Use short SRV resolving timeout

By default, lower SRV resolve timeout from 30 seconds to 5 seconds
Should help people facing SRV issues, see #213
Timeout can be set to 30 seconds in settings.
This commit is contained in:
ORelio 2016-11-17 11:18:35 +01:00
parent 1096170d7f
commit 8ec2b2e570
2 changed files with 16 additions and 3 deletions

View file

@ -83,7 +83,7 @@ namespace MinecraftClient.Protocol
{
ConsoleIO.WriteLineFormatted(String.Format("§8{0}: {1}", e.GetType().FullName, e.Message));
}
}, TimeSpan.FromSeconds(30)))
}, TimeSpan.FromSeconds(Settings.ResolveSrvRecordsShortTimeout ? 5 : 30)))
{
protocolversion = protocolversionTmp;
forgeInfo = forgeInfoTmp;