mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix crash on disconnect when failed to connect
Fix #67 and bug report by doranchak (post no 1084 on forum thread at minecraft forums)
This commit is contained in:
parent
72c2ff5ef0
commit
e4916033fa
1 changed files with 5 additions and 2 deletions
|
|
@ -283,8 +283,11 @@ namespace MinecraftClient
|
|||
if (bot is ChatBots.Script)
|
||||
scripts_on_hold.Add((ChatBots.Script)bot);
|
||||
|
||||
if (handler != null)
|
||||
{
|
||||
handler.Disconnect();
|
||||
handler.Dispose();
|
||||
}
|
||||
|
||||
if (cmdprompt != null)
|
||||
cmdprompt.Abort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue