fix: don't attempt to reconnect when the bot is stopping

This commit is contained in:
ChomeNS
2025-05-05 13:20:00 +07:00
parent 14ab8a7bda
commit 8a868052f5
2 changed files with 4 additions and 3 deletions

View File

@@ -363,6 +363,8 @@ public class Bot extends SessionAdapter {
if (printDisconnectedCause && cause != null) logger.error(cause);
if (Main.stopping) return;
if (!isTransferring) cookies.clear();
int reconnectDelay = options.reconnectDelay;