diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp index 75c7d10c57..e6d7df1814 100644 --- a/src/dpp/cluster/timer.cpp +++ b/src/dpp/cluster/timer.cpp @@ -107,7 +107,7 @@ void cluster::tick_timers() { */ bool not_deleted = ([handle, this]() -> bool { std::lock_guard l(timer_guard); - return timer_list.contains(handle); + return timer_list.find(handle) != timer_list.end(); }()); if (not_deleted) { timer_reschedule(t);