From 0b93c186708460962d5f47414fe80b289a24bbe1 Mon Sep 17 00:00:00 2001 From: Andrei Lebedev Date: Sun, 8 Jul 2018 18:36:26 +0300 Subject: Remove static from observe_on_run_loop - Different run loops can be used with factory calls --- Rx/v2/src/rxcpp/operators/rx-observe_on.hpp | 3 +-- 1 file changed, 1 insertion(+), 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() { -- cgit v1.2.3