From 11880f5760451857b0e74dbc92975791d2ad0327 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 1 Sep 2018 16:19:40 -0700 Subject: [PATCH] Core: Scheduling includes re-rooted if no root --- src/core/timing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/timing.c b/src/core/timing.c index e82efe892..be63c1029 100644 --- a/src/core/timing.c +++ b/src/core/timing.c @@ -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;