From e024142dc3b23c229e6b375fdf7c5516df7c8437 Mon Sep 17 00:00:00 2001 From: Anatoly Shirokov Date: Thu, 30 Mar 2017 18:42:44 +0300 Subject: fixed https://github.com/Reactive-Extensions/RxCpp/issues/366 --- Rx/v2/src/rxcpp/schedulers/rx-test.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Rx') diff --git a/Rx/v2/src/rxcpp/schedulers/rx-test.hpp b/Rx/v2/src/rxcpp/schedulers/rx-test.hpp index 86d426a..3f73e52 100644 --- a/Rx/v2/src/rxcpp/schedulers/rx-test.hpp +++ b/Rx/v2/src/rxcpp/schedulers/rx-test.hpp @@ -340,8 +340,9 @@ public: template rxt::testable_observable test_type::make_hot_observable(std::vector>>> messages) const { - return rxt::testable_observable( - std::make_shared>(state, create_worker(composite_subscription()), std::move(messages))); + auto worker = create_worker(composite_subscription()); + auto shared = std::make_shared>(state, worker, std::move(messages)); + return rxt::testable_observable(shared); } template -- cgit v1.2.3