diff --git a/rxjava-core/src/main/java/rx/Observable.java b/rxjava-core/src/main/java/rx/Observable.java index aff51453e8..4afefabc8e 100644 --- a/rxjava-core/src/main/java/rx/Observable.java +++ b/rxjava-core/src/main/java/rx/Observable.java @@ -6255,16 +6255,7 @@ public final Subscription subscribe(Subscriber subscriber) { subscriber = new SafeSubscriber(subscriber); } onSubscribeFunction.call(subscriber); - final Subscription returnSubscription = hook.onSubscribeReturn(subscriber); - // we return it inside a Subscription so it can't be cast back to Subscriber - return Subscriptions.create(new Action0() { - - @Override - public void call() { - returnSubscription.unsubscribe(); - } - - }); + return hook.onSubscribeReturn(subscriber); } catch (Throwable e) { // special handling for certain Throwable/Error/Exception types Exceptions.throwIfFatal(e);