diff --git a/include/dpp/coro/task.h b/include/dpp/coro/task.h index 2bc8a6c8d6..3b45db6eff 100644 --- a/include/dpp/coro/task.h +++ b/include/dpp/coro/task.h @@ -282,8 +282,8 @@ struct promise_base : basic_promise { /** @brief Wrapper for the awaitable's await_suspend */ template - [[nodiscard]] decltype(auto) await_suspend(T&& handle) noexcept(noexcept(awaitable.await_suspend(std::forward(handle)))) { - return awaitable.await_suspend(std::forward(handle)); + [[nodiscard]] decltype(auto) await_suspend(T handle) noexcept(noexcept(awaitable.await_suspend(std::move(handle)))) { + return awaitable.await_suspend(std::move(handle)); } /**