Browse Source

fix timer issues

sync reactor-core
pull/1111/head
Stephane Maldini 10 years ago
parent
commit
9204fdc371
  1. 2
      spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java
  2. 1
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/AsyncIntegrationTests.java

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java

@ -131,7 +131,7 @@ public class UndertowHttpHandlerAdapter implements io.undertow.server.HttpHandle @@ -131,7 +131,7 @@ public class UndertowHttpHandlerAdapter implements io.undertow.server.HttpHandle
@Override
public void subscribe(Subscriber<? super DataBuffer> subscriber) {
if (subscriber == null) {
throw Exceptions.spec_2_13_exception();
throw Exceptions.argumentIsNullException();
}
if (this.subscriber != null) {
subscriber.onError(new IllegalStateException("Only one subscriber allowed"));

1
spring-web-reactive/src/test/java/org/springframework/http/server/reactive/AsyncIntegrationTests.java

@ -27,6 +27,7 @@ import org.junit.runners.Parameterized; @@ -27,6 +27,7 @@ import org.junit.runners.Parameterized;
import reactor.core.publisher.Mono;
import reactor.core.publisher.ProcessorGroup;
import reactor.core.publisher.Processors;
import reactor.core.timer.Timer;
import reactor.rx.Stream;
import org.springframework.core.io.buffer.DataBufferAllocator;

Loading…
Cancel
Save