Fix Thread.sleep()

This commit is contained in:
siyy123
2022-05-26 10:34:09 +08:00
committed by GitHub
parent 69c5da47a0
commit 2fd9d75ba7

View File

@@ -98,9 +98,10 @@ public class AkarinSlackScheduler extends Thread {
} }
try { try {
Thread.sleep(100 - (System.currentTimeMillis() - startProcessTiming)); long sleepFixed = 100 - (System.currentTimeMillis() - startProcessTiming);
if (sleepFixed > 0) Thread.sleep(sleepFixed);
} catch (InterruptedException interrupted) { } catch (InterruptedException interrupted) {
; continue;
} }
} }
} }