File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/rx/internal/operators Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ public void request(long n) {
98
98
}
99
99
100
100
if (!it .hasNext ()) {
101
- o .onCompleted ();
101
+ if (!o .isUnsubscribed ()) {
102
+ o .onCompleted ();
103
+ }
102
104
return ;
103
105
}
104
106
if (REQUESTED_UPDATER .addAndGet (this , -r ) == 0 ) {
Original file line number Diff line number Diff line change @@ -186,7 +186,8 @@ private void handleNewSource(Observable<? extends T> t) {
186
186
InnerSubscriber <T > i = new InnerSubscriber <T >(this , producerIfNeeded );
187
187
i .sindex = childrenSubscribers .add (i );
188
188
t .unsafeSubscribe (i );
189
- request (1 );
189
+ if (!isUnsubscribed ())
190
+ request (1 );
190
191
}
191
192
192
193
private void handleScalarSynchronousObservable (ScalarSynchronousObservable <? extends T > t ) {
You can’t perform that action at this time.
0 commit comments