This commit is contained in:
mcrcortex
2025-05-15 10:55:47 +10:00
parent c2be58b0f2
commit 88b166d297

View File

@@ -274,13 +274,14 @@ public class AsyncNodeManager {
if (this.workCounter.addAndGet(-workDone) < 0) {
try {
Thread.sleep(500);
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
//Due to synchronization "issues", wait a millis (give up this time slice)
if (this.workCounter.get() < 0) {
throw new IllegalStateException("Work counter less than zero");
Logger.error("Work counter less than zero, returning and hope it fixes itself");
return;
}
}