mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Correctly recycle CharSetBlocks
This commit is contained in:
parent
9762e4e220
commit
38d1a64bf5
@ -51,6 +51,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void recycle() {
|
public synchronized void recycle() {
|
||||||
|
reset();
|
||||||
POOL.offer(this);
|
POOL.offer(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1046,7 +1046,6 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
|||||||
try {
|
try {
|
||||||
return this.call(chunkSet, () -> {
|
return this.call(chunkSet, () -> {
|
||||||
this.delegate = NULL;
|
this.delegate = NULL;
|
||||||
chunkSet.recycle();
|
|
||||||
chunkSet = null;
|
chunkSet = null;
|
||||||
calledLock.unlock(stamp);
|
calledLock.unlock(stamp);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user