add missed remake

This commit is contained in:
J. Nick Koston 2025-07-06 20:59:43 -05:00
parent 7eb029f4b9
commit ec65652567
No known key found for this signature in database

View File

@ -314,6 +314,8 @@ void HOT Scheduler::call() {
// Replace items_ with the filtered list
this->items_ = std::move(valid_items);
// Rebuild the heap structure since items are no longer in heap order
std::make_heap(this->items_.begin(), this->items_.end(), SchedulerItem::cmp);
this->to_remove_ = 0;
}