Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ public void run(final Publisher<T> pub) throws InterruptedException {
public void onSubscribe(Subscription subs) {
onSubscribeLatch.assertOpen("Only one onSubscribe call expected");
onSubscribeLatch.close();

// If the publisher requires a request to publish the error, that follows the spec
// If it does not, this should be a no-op
subs.request(1);
}
@Override
public void onError(Throwable cause) {
Expand Down Expand Up @@ -527,6 +531,10 @@ public void onError(Throwable cause) {
public void onSubscribe(Subscription subs) {
onSubscribeLatch.assertOpen("Only one onSubscribe call expected");
onSubscribeLatch.close();

// If the publisher requires a request to publish the error, that follows the spec
// If it does not, this should be a no-op
subs.request(1);
}
};
pub.subscribe(sub);
Expand Down