Browse Source

Update after changed method in Reactor Core

pull/1361/head
Rossen Stoyanchev 9 years ago
parent
commit
6f075c9060
  1. 2
      spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java

2
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java

@ -113,7 +113,7 @@ public abstract class DataBufferUtils { @@ -113,7 +113,7 @@ public abstract class DataBufferUtils {
ByteBuffer byteBuffer = ByteBuffer.allocate(bufferSize);
return Flux.create(emitter -> {
emitter.onDispose(() -> closeChannel(channel));
emitter.setCancellation(() -> closeChannel(channel));
AsynchronousFileChannelCompletionHandler completionHandler =
new AsynchronousFileChannelCompletionHandler(emitter, position,
dataBufferFactory, byteBuffer);

Loading…
Cancel
Save