File tree 1 file changed +2
-2
lines changed
rxjava-core/src/main/java/rx
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) {
174
174
this .onSubscribe = f ;
175
175
}
176
176
177
- private final RxJavaObservableExecutionHook hook = RxJavaPlugins .getInstance ().getObservableExecutionHook ();
177
+ private static final RxJavaObservableExecutionHook hook = RxJavaPlugins .getInstance ().getObservableExecutionHook ();
178
178
179
179
/**
180
180
* Returns an Observable that will execute the specified function when a {@link Subscriber} subscribes to
@@ -201,7 +201,7 @@ protected Observable(OnSubscribe<T> f) {
201
201
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.create.aspx">MSDN: Observable.Create</a>
202
202
*/
203
203
public final static <T > Observable <T > create (OnSubscribe <T > f ) {
204
- return new Observable <T >(f );
204
+ return new Observable <T >(hook . onCreate ( f ) );
205
205
}
206
206
207
207
/**
You can’t perform that action at this time.
0 commit comments