mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix conflict between TimeoutDetector and AutoRelog
Disable TimeoutDetector as soon as a kick message is detected See #817
This commit is contained in:
parent
96eda73dce
commit
d1674a2d74
1 changed files with 9 additions and 0 deletions
|
|
@ -369,7 +369,10 @@ namespace MinecraftClient
|
||||||
cmdprompt.Abort();
|
cmdprompt.Abort();
|
||||||
|
|
||||||
if (timeoutdetector != null)
|
if (timeoutdetector != null)
|
||||||
|
{
|
||||||
timeoutdetector.Abort();
|
timeoutdetector.Abort();
|
||||||
|
timeoutdetector = null;
|
||||||
|
}
|
||||||
|
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
|
|
||||||
|
|
@ -724,6 +727,12 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
world.Clear();
|
world.Clear();
|
||||||
|
|
||||||
|
if (timeoutdetector != null)
|
||||||
|
{
|
||||||
|
timeoutdetector.Abort();
|
||||||
|
timeoutdetector = null;
|
||||||
|
}
|
||||||
|
|
||||||
bool will_restart = false;
|
bool will_restart = false;
|
||||||
|
|
||||||
switch (reason)
|
switch (reason)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue