mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Always trim chunk GET in ChunkHolder
- Possibly something to do with #1169
This commit is contained in:
parent
84b9dce6be
commit
d62a1b5ad3
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user