fix coroutine resume

master
Daniel Kolesa 2018-04-21 19:06:32 +02:00
parent bf8657e141
commit 77814ca08f
1 changed files with 2 additions and 2 deletions

View File

@ -782,9 +782,9 @@ public:
if (this->is_dead()) { if (this->is_dead()) {
throw coroutine_error{"dead coroutine"}; throw coroutine_error{"dead coroutine"};
} }
this->set_args(&args...); p_stor.set_args(&args...);
base_t::call(); base_t::call();
return this->get_result(); return p_stor.get_result();
} }
/** @brief Calls the coroutine. /** @brief Calls the coroutine.