Fix conflict between TimeoutDetector and AutoRelog

Disable TimeoutDetector as soon as a kick message is detected
See #817
This commit is contained in:
ORelio 2019-11-24 12:49:03 +01:00
parent 96eda73dce
commit d1674a2d74

View file

@ -369,7 +369,10 @@ namespace MinecraftClient
cmdprompt.Abort();
if (timeoutdetector != null)
{
timeoutdetector.Abort();
timeoutdetector = null;
}
Thread.Sleep(1000);
@ -724,6 +727,12 @@ namespace MinecraftClient
{
world.Clear();
if (timeoutdetector != null)
{
timeoutdetector.Abort();
timeoutdetector = null;
}
bool will_restart = false;
switch (reason)