diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp index 37a248474a..31338ba9be 100644 --- a/src/dpp/cluster/timer.cpp +++ b/src/dpp/cluster/timer.cpp @@ -67,7 +67,7 @@ void cluster::tick_timers() { timer_t cur_timer; { std::lock_guard l(timer_guard); - if (next_timer.top().next_tick > now) { + if (next_timer.empty() || next_timer.top().next_tick > now) { /* Nothing to do */ break; }