3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Always trim chunk GET in ChunkHolder

- Possibly something to do with #1169
Dieser Commit ist enthalten in:
dordsor21 2021-07-29 20:37:10 +01:00
Ursprung 84b9dce6be
Commit d62a1b5ad3
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -862,6 +862,8 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
@Override @Override
public synchronized boolean trim(boolean aggressive) { public synchronized boolean trim(boolean aggressive) {
// always trim GET. It could be cached elsewhere.
chunkExisting.trim(aggressive);
if (chunkSet != null) { if (chunkSet != null) {
final boolean result = chunkSet.trim(aggressive); final boolean result = chunkSet.trim(aggressive);
if (result) { if (result) {
@ -878,8 +880,6 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
} else if (delegate == GET) { } else if (delegate == GET) {
delegate = NULL; delegate = NULL;
} }
} else {
chunkExisting.trim(false);
} }
return false; return false;
} }