Do not use infinite loop
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2024-08-05 19:24:00 +02:00
parent 15bf2f80a1
commit 7567552c1a

View File

@ -15,6 +15,8 @@ public class Main {
private static final int LOOPS_BEFORE_CLICK = 5;
private static final int TIME_BETWEEN_MOVES = 5;
private static boolean running = true;
private static final Logger LOGGER = LogManager.getLogger(Main.class);
public static void main(String[] args) throws InterruptedException, AWTException {
@ -31,7 +33,7 @@ public class Main {
Random random = new Random();
while (true) {
while (running) {
//if(!cursorMoveListener.isUserAway()) continue;
for(int i = 0; i < LOOPS_BEFORE_CLICK; i++) {