summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rx/v2/src/rxcpp/operators/rx-observe_on.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
index 99de4c3..274f3f1 100644
--- a/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
+++ b/Rx/v2/src/rxcpp/operators/rx-observe_on.hpp
@@ -316,8 +316,7 @@ public:
};
inline observe_on_one_worker observe_on_run_loop(const rxsc::run_loop& rl) {
- static observe_on_one_worker r(rxsc::make_run_loop(rl));
- return r;
+ return observe_on_one_worker(rxsc::make_run_loop(rl));
}
inline observe_on_one_worker observe_on_event_loop() {