We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f32c82 + 792c4ed commit 4b53474Copy full SHA for 4b53474
rxjava-core/src/main/java/rx/subjects/SubjectSubscriptionManager.java
@@ -57,8 +57,10 @@ public void call(final Subscriber<? super T> child) {
57
SubjectObserver<T> bo = new SubjectObserver<T>(child);
58
addUnsubscriber(child, bo);
59
onStart.call(bo);
60
- if (add(bo) && child.isUnsubscribed()) {
61
- remove(bo);
+ if (!child.isUnsubscribed()) {
+ if (add(bo) && child.isUnsubscribed()) {
62
+ remove(bo);
63
+ }
64
}
65
66
/** Registers the unsubscribe action for the given subscriber. */
0 commit comments