refactor: remove outofmemoryerror check because we don't need it anymore

This commit is contained in:
ChomeNS
2025-03-12 07:53:47 +07:00
parent d75e04b2d3
commit 6bab5e50ec
2 changed files with 1 additions and 4 deletions

View File

@@ -343,9 +343,6 @@ public class Bot extends SessionAdapter {
if (printDisconnectedCause && cause != null) logger.error(cause);
// lazy fix #69420
if (cause instanceof OutOfMemoryError) System.exit(1);
if (!isTransferring) cookies.clear();
int reconnectDelay = options.reconnectDelay;