use separate threads for everything: fixes 2

This commit is contained in:
2024-06-21 22:47:12 +02:00
parent 1ceb183d65
commit 1d4f5a2bd3

View File

@@ -60,7 +60,7 @@ public class JObjectWriteback {
boolean wait = false;
while (true) {
if (wait) {
Thread.sleep(100);
Thread.sleep(500);
wait = false;
}
JObject<?> obj;
@@ -68,7 +68,7 @@ public class JObjectWriteback {
while (_objects.isEmpty())
_objects.wait();
if ((System.currentTimeMillis() - _objects.firstEntry().getValue().getLeft()) < 100L) {
if ((System.currentTimeMillis() - _objects.firstEntry().getValue().getLeft()) < 500L) {
wait = true;
continue;
}