Skip to content

Commit fd9a1ee

Browse files
committed
build: fix rx test on undertow
- a response handler was missing
1 parent 737cee4 commit fd9a1ee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

modules/jooby-rxjava3/src/main/java/io/jooby/rxjava3/Reactivex.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import io.reactivex.rxjava3.core.Maybe;
2121
import io.reactivex.rxjava3.core.Observable;
2222
import io.reactivex.rxjava3.core.Single;
23+
import io.reactivex.rxjava3.disposables.Disposable;
2324

2425
/**
2526
* Rx reactive filter.
@@ -53,6 +54,9 @@ public Route.Handler apply(@NonNull Route.Handler next) {
5354
maybe.subscribe(new RxSubscriber(ctx));
5455
// Return context to mark as handled
5556
return ctx;
57+
} else if (result instanceof Disposable) {
58+
// Return context to mark as handled
59+
return ctx;
5660
}
5761
return result;
5862
};

0 commit comments

Comments
 (0)