File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rxjava-core/src/main/java/rx Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ protected Observable(OnSubscribe<T> f) {
174174 this .onSubscribe = f ;
175175 }
176176
177- private final RxJavaObservableExecutionHook hook = RxJavaPlugins .getInstance ().getObservableExecutionHook ();
177+ private static final RxJavaObservableExecutionHook hook = RxJavaPlugins .getInstance ().getObservableExecutionHook ();
178178
179179 /**
180180 * Returns an Observable that will execute the specified function when a {@link Subscriber} subscribes to
@@ -201,7 +201,7 @@ protected Observable(OnSubscribe<T> f) {
201201 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.create.aspx">MSDN: Observable.Create</a>
202202 */
203203 public final static <T > Observable <T > create (OnSubscribe <T > f ) {
204- return new Observable <T >(f );
204+ return new Observable <T >(hook . onCreate ( f ) );
205205 }
206206
207207 /**
You can’t perform that action at this time.
0 commit comments