File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
rxjava-core/src/main/java/rx Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -6255,16 +6255,7 @@ public final Subscription subscribe(Subscriber<? super T> subscriber) {
6255
6255
subscriber = new SafeSubscriber <T >(subscriber );
6256
6256
}
6257
6257
onSubscribeFunction .call (subscriber );
6258
- final Subscription returnSubscription = hook .onSubscribeReturn (subscriber );
6259
- // we return it inside a Subscription so it can't be cast back to Subscriber
6260
- return Subscriptions .create (new Action0 () {
6261
-
6262
- @ Override
6263
- public void call () {
6264
- returnSubscription .unsubscribe ();
6265
- }
6266
-
6267
- });
6258
+ return hook .onSubscribeReturn (subscriber );
6268
6259
} catch (Throwable e ) {
6269
6260
// special handling for certain Throwable/Error/Exception types
6270
6261
Exceptions .throwIfFatal (e );
You can’t perform that action at this time.
0 commit comments