mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 12:05:13 +01:00
Fix running update task not being removed if a purge is scheduled
This commit is contained in:
parent
4447c318bd
commit
8eb74004c6
@ -253,6 +253,7 @@ private void removeTasksThatAreContainedIn(RenderTask containingTask) {
|
||||
synchronized (this.renderTasks) {
|
||||
if (renderTasks.size() < 2) return;
|
||||
RenderTask first = renderTasks.removeFirst();
|
||||
if (containingTask.contains(first)) first.cancel();
|
||||
renderTasks.removeIf(containingTask::contains);
|
||||
renderTasks.addFirst(first);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user