Skip to content

Commit

Permalink
Discord: Fix if you initially provided an invalid token, corrected th…
Browse files Browse the repository at this point in the history
…e bot token in discord properties, then did /server reload, and then did /discordbot connect, the bot wouldn't reconnect
  • Loading branch information
UnknownShadow200 committed May 25, 2021
1 parent c8bd036 commit 7a3c955
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MCGalaxy/Modules/Relay/Discord/DiscordBot.cs
Expand Up @@ -215,6 +215,7 @@ public sealed class DiscordBot : RelayBot {
}

protected override void OnStop() {
socket = null;
if (api != null) {
api.StopAsync();
api = null;
Expand Down

0 comments on commit 7a3c955

Please sign in to comment.