Fix loosing some thread pool tasks

This commit is contained in:
James Seibel
2026-02-09 07:43:53 -06:00
parent a98d9239e6
commit f0d71027f1
@@ -133,6 +133,15 @@ public class PriorityTaskPicker
// Clear this executor's tasks since we no longer expect anything to execute.
executor.taskQueue.clear();
}
else
{
// This executor is still running, there must have been a glitch with the
// underlying thread pool.
// Re-queue the task so we don't lose any tasks
// (failing to re-queue tasks can cause LODs to fail to load due
// to completable futures becoming orphaned).
executor.taskQueue.add(task);
}
}
}
}