Changeset 2133


Ignore:
Timestamp:
05/15/10 14:52:43 (4 years ago)
Author:
lowjoel
Message:

Run the task completion event handler before resetting the type of task so that immediately run tasks can be deleted upon completion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Manager/DirectExecutor.cs

    r2129 r2133  
    323323                    ((RecurringSchedule)task.Schedule).Reschedule(DateTime.Now); 
    324324 
     325                //And the task finished event. 
     326                task.OnTaskFinished(); 
     327 
    325328                //If the task is an execute on restart task or run immediately task, it is 
    326329                //only run once and can now be restored to a manually run task 
    327330                if (task.Schedule == Schedule.RunOnRestart || task.Schedule == Schedule.RunNow) 
    328331                    task.Schedule = Schedule.RunManually; 
    329  
    330                 //And the task finished event. 
    331                 task.OnTaskFinished(); 
    332332 
    333333                //Remove the actively executing task from our instance variable 
Note: See TracChangeset for help on using the changeset viewer.