From e36c2ffe60e5dc338d30cab362023ad10545965c Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Tue, 9 Feb 2021 20:16:55 +0000 Subject: [PATCH] corrects logout --- BSBshared/BotTypes/BasicBot.cs | 1 + CLI/CliExitOnLogout.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/BSBshared/BotTypes/BasicBot.cs b/BSBshared/BotTypes/BasicBot.cs index 15ce175..59a54d9 100644 --- a/BSBshared/BotTypes/BasicBot.cs +++ b/BSBshared/BotTypes/BasicBot.cs @@ -143,6 +143,7 @@ namespace BetterSecondBotShared.bottypes public virtual void KillMePlease() { killMe = true; + Client.Network.BeginLogout(); } public virtual void Setup(JsonConfig config, string Version) { diff --git a/CLI/CliExitOnLogout.cs b/CLI/CliExitOnLogout.cs index 772de90..1d7e9df 100644 --- a/CLI/CliExitOnLogout.cs +++ b/CLI/CliExitOnLogout.cs @@ -30,7 +30,6 @@ namespace BetterSecondBot } Thread.Sleep(1000); } - Bot.GetClient.Network.Logout(); } public CliExitOnLogout(JsonConfig Config, bool as_docker, bool use_self_keep_alive) {