Update Status.cs
This commit is contained in:
parent
e7a294e32f
commit
997b3259da
1 changed files with 4 additions and 1 deletions
|
|
@ -45,7 +45,10 @@ namespace BetterSecondBot.DiscordSupervisor
|
|||
reply = controler.Bot.LastStatusMessage + reply;
|
||||
if (controler.Bot.KillMe == true)
|
||||
{
|
||||
controler.Bot.GetClient.Network.Logout();
|
||||
if (controler.Bot.GetClient.Network.Connected == true)
|
||||
{
|
||||
controler.Bot.GetClient.Network.Logout();
|
||||
}
|
||||
controler = null;
|
||||
reply = "[Discord-V: connected] (Logging out)";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue