Scheduler: Further cleanup

This commit is contained in:
wheremyfoodat
2025-10-12 15:40:25 +03:00
parent bac050fc4b
commit 53f9ffc12e

View File

@@ -73,14 +73,13 @@ struct Scheduler {
if (inplace) { if (inplace) {
it->first = newTimestamp; it->first = newTimestamp;
updateNextTimestamp();
} else { } else {
EventType ev = it->second; EventType ev = it->second;
events.erase(it); events.erase(it);
events.emplace(newTimestamp, ev); events.emplace(newTimestamp, ev);
updateNextTimestamp();
} }
updateNextTimestamp();
return; return;
} }
} }