mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 23:36:10 +00:00
Stop disconnecting
This commit is contained in:
parent
f2968bc857
commit
3377ba1b0b
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue