diff --git a/include/seastar/coroutine/all.hh b/include/seastar/coroutine/all.hh index 206a2c049e3..e88433447d4 100644 --- a/include/seastar/coroutine/all.hh +++ b/include/seastar/coroutine/all.hh @@ -134,8 +134,9 @@ class [[nodiscard("must co_await an all() object")]] all { std::get(container.state._futures) = make_ready_future(std::move(this->_state).get()); } } + awaiter& c = container; this->~intermediate_task(); - container.template process(); + c.template process(); } }; template