diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java index c8ee474..fa8857b 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java @@ -49,7 +49,10 @@ public class GrepLogPlugin { final StringBuilder result = new StringBuilder(); for (Path filePath : fileList) { - if (!running) return; + if (!running) { + pattern = null; + return; + } if (count > 1_000_000) break;