Ignore:
Timestamp:
03/11/08 13:39:13 (6 years ago)
Author:
lowjoel
Message:

Reschedule the task before saying that it is complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/DirectExecutor.cs

    r236 r240  
    248248                    finally 
    249249                    { 
    250                         //And the task finished event. 
    251                         task.OnTaskFinished(new TaskEventArgs(task)); 
    252  
    253250                        //If the task is a recurring task, reschedule it since we are done. 
    254251                        if (task.Schedule is RecurringSchedule) 
    255252                            ((RecurringSchedule)task.Schedule).Reschedule(DateTime.Now); 
     253 
     254                        //If the task is an execute on restart task, it is only run 
     255                        //once and can now be restored to an immediately executed task 
     256                        if (task.Schedule == Schedule.RunOnRestart) 
     257                            task.Schedule = Schedule.RunNow; 
     258 
     259                        //And the task finished event. 
     260                        task.OnTaskFinished(new TaskEventArgs(task)); 
    256261                    } 
    257262                } 
Note: See TracChangeset for help on using the changeset viewer.