Set the correct delegate to the ChunkHolder when using get or set in NULL delegate (#1830)

This commit is contained in:
Jordan 2022-06-21 12:55:51 +01:00 committed by GitHub
parent fe90142f1f
commit 3f103eea9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -744,14 +744,14 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
@Override
public IChunkGet get(ChunkHolder chunk) {
chunk.getOrCreateGet();
chunk.delegate = BOTH;
chunk.delegate = GET;
return chunk.chunkExisting;
}
@Override
public IChunkSet set(ChunkHolder chunk) {
chunk.getOrCreateSet();
chunk.delegate = BOTH;
chunk.delegate = SET;
return chunk.chunkSet;
}