mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +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
|
||||
public synchronized void recycle() {
|
||||
reset();
|
||||
POOL.offer(this);
|
||||
}
|
||||
|
||||
|
@ -1046,7 +1046,6 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
try {
|
||||
return this.call(chunkSet, () -> {
|
||||
this.delegate = NULL;
|
||||
chunkSet.recycle();
|
||||
chunkSet = null;
|
||||
calledLock.unlock(stamp);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user