about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/038scheduler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/038scheduler.cc b/cpp/038scheduler.cc
index d35d853d..cd07cfc5 100644
--- a/cpp/038scheduler.cc
+++ b/cpp/038scheduler.cc
@@ -36,7 +36,7 @@ void run(recipe_number r) {
     Running_routines.pop_front();
     trace("schedule") << current_recipe_name();
     run_current_routine(Scheduling_interval);
-    if (Current_routine->calls.empty())
+    if (Current_routine->completed())
       Completed_routines.push_back(Current_routine);
     else
       Running_routines.push_back(Current_routine);
5 6
7
8
9
10
11
12
13
14
15
16
17
18