From 3377ba1b0b7c11f5305c210578f2cb09c4354973 Mon Sep 17 00:00:00 2001 From: Business Goose Date: Thu, 31 Mar 2022 03:24:47 +0100 Subject: [PATCH] Stop disconnecting --- .../TotalFreedomMod/discord/bridge/DiscordBridge.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/discord/bridge/DiscordBridge.java b/src/main/java/me/StevenLawson/TotalFreedomMod/discord/bridge/DiscordBridge.java index a10e0d5..d7cd680 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/discord/bridge/DiscordBridge.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/discord/bridge/DiscordBridge.java @@ -1,8 +1,6 @@ package me.StevenLawson.TotalFreedomMod.discord.bridge; import java.util.Optional; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; import java.util.regex.Pattern; import me.StevenLawson.TotalFreedomMod.Log; import me.StevenLawson.TotalFreedomMod.admin.AdminList; @@ -208,7 +206,7 @@ public class DiscordBridge { CHANNEL.sendMessage(sanitizeMessage(message)).get(); } catch (Exception ignored) { } - CountDownLatch shutdownWaiter = new CountDownLatch(1); + /*CountDownLatch shutdownWaiter = new CountDownLatch(1); Thread t = new Thread(() -> { DISCORD_API.addLostConnectionListener( @@ -220,7 +218,7 @@ public class DiscordBridge { } catch (InterruptedException ignored) { } }); - t.start(); + t.start();*/ } } @@ -239,7 +237,7 @@ public class DiscordBridge { ADMIN_CHANNEL.sendMessage(sanitizeMessage(message)).get(); } catch (Exception ignored) { } - DISCORD_API.disconnect(); + //DISCORD_API.disconnect(); } }