Polish ByteBufferPublisherInputStream exception handling

master
Sebastien Deleuze 9 years ago
parent 8ca04b8425
commit 3ad765556d
  1. 5
      spring-web-reactive/src/main/java/org/springframework/reactive/io/ByteBufferPublisherInputStream.java

@ -20,7 +20,6 @@ import org.reactivestreams.Publisher;
import org.reactivestreams.Subscription;
import org.springframework.util.Assert;
import reactor.Publishers;
import reactor.core.error.CancelException;
import java.io.IOException;
import java.io.InputStream;
@ -140,10 +139,6 @@ public class ByteBufferPublisherInputStream extends InputStream {
return this.currentStream;
}
}
catch (CancelException ce) {
this.completed = true;
return null;
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}

Loading…
Cancel
Save