From 7e7493b4bf34a35388fe516e0381cb559590fe3b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 25 Apr 2015 22:30:20 -0700 Subject: 1201 --- cpp/038scheduler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit 1.4.1-2-gfad0