Core: Scheduling includes re-rooted if no root

This commit is contained in:
Vicki Pfau 2018-09-01 16:19:40 -07:00
parent 6c664c7efe
commit 11880f5760
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ void mTimingDeschedule(struct mTiming* timing, struct mTimingEvent* event) {
bool mTimingIsScheduled(const struct mTiming* timing, const struct mTimingEvent* event) {
const struct mTimingEvent* next = timing->root;
if (!next) {
next = timing->reroot;
}
while (next) {
if (next == event) {
return true;