From 678206b272ed9eb12ed9f1afec6e86bf86d02e0e Mon Sep 17 00:00:00 2001 From: BartolomeyKant Date: Wed, 27 May 2026 14:27:56 +0500 Subject: [PATCH] make reset than set_error --- aether/executors/with_timeout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aether/executors/with_timeout.h b/aether/executors/with_timeout.h index 1b77453e..c1162f86 100644 --- a/aether/executors/with_timeout.h +++ b/aether/executors/with_timeout.h @@ -93,8 +93,8 @@ class Operation { // task_sub controls if task reset or no op_base_.task_sub = ac_.scheduler().DelayedTask( [&]() noexcept { - stdexec::set_error(std::move(op_base_.recv), TimeoutError{}); op_base_.Reset(); + stdexec::set_error(std::move(op_base_.recv), TimeoutError{}); }, duration_);