From 77814ca08f017dafec984fd6a865b81c9c3b4c26 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 21 Apr 2018 19:06:32 +0200 Subject: [PATCH] fix coroutine resume --- ostd/coroutine.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ostd/coroutine.hh b/ostd/coroutine.hh index 9b33bd8..e94b247 100644 --- a/ostd/coroutine.hh +++ b/ostd/coroutine.hh @@ -782,9 +782,9 @@ public: if (this->is_dead()) { throw coroutine_error{"dead coroutine"}; } - this->set_args(&args...); + p_stor.set_args(&args...); base_t::call(); - return this->get_result(); + return p_stor.get_result(); } /** @brief Calls the coroutine.