diff --git a/Timer.java b/Timer.java index 88727fb..ec8fd80 100644 --- a/Timer.java +++ b/Timer.java @@ -230,8 +230,13 @@ public class Timer { private int cascade(ListHead[] tv, int index) { tv[index].replaceInit(cascadeList); - while (!cascadeList.empty()) { - // internalAddTimer(); + if (!cascadeList.empty()) { + ListHead pos, n; + for (pos = cascadeList.next, n = pos.next; + pos != cascadeList; + pos = n , n = pos.next) { + internalAddTimer((TimerList)pos.data); + } } cascadeList.init(); return index;