Fix AutoRelog running twice on disconnection

Bug introduced in commit aaf1e8311b
Implement User-Initiated logout reason to ignore the second logout event
See #817
This commit is contained in:
ORelio 2019-12-08 22:24:20 +01:00
parent 94e96b11dd
commit 52d98538b3
3 changed files with 35 additions and 24 deletions

View file

@ -27,7 +27,7 @@ namespace MinecraftClient
/// </summary>
public abstract class ChatBot
{
public enum DisconnectReason { InGameKick, LoginRejected, ConnectionLost };
public enum DisconnectReason { InGameKick, LoginRejected, ConnectionLost, UserLogout };
//Handler will be automatically set on bot loading, don't worry about this
public void SetHandler(McTcpClient handler) { this._handler = handler; }