diff --git a/include/boost/fiber/detail/autoreset_event.hpp b/include/boost/fiber/detail/autoreset_event.hpp index 00cdfb98..c83d4c91 100644 --- a/include/boost/fiber/detail/autoreset_event.hpp +++ b/include/boost/fiber/detail/autoreset_event.hpp @@ -46,9 +46,8 @@ public: void reset( std::chrono::steady_clock::time_point const& time_point) { std::unique_lock< std::mutex > lk( mtx_); - if ( cnd_.wait_until( lk, time_point, [=](){ return flag_; }) ) { - flag_ = false; - } + cnd_.wait_until( lk, time_point, [=](){ return flag_; }); + flag_ = false; } };