Changeset 799
- Timestamp:
- 12/12/2008 3:40:22 AM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Manager/DirectExecutor.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Manager/DirectExecutor.cs
r798 r799 76 76 //Add the task to the set of tasks 77 77 lock (tasksLock) 78 {79 78 tasks.Add(task.ID, task); 80 81 //If the task is scheduled to run now, break the waiting thread and82 //run it immediately83 if (task.Schedule == Schedule.RunNow)84 {85 QueueTask(task);86 }87 //If the task is scheduled, add the next execution time to the list88 //of schduled tasks.89 else if (task.Schedule != Schedule.RunOnRestart)90 {91 ScheduleTask(task);92 }93 }94 79 95 80 //Call all the event handlers who registered to be notified of tasks 96 81 //being added. 97 82 OnTaskAdded(task); 83 84 //If the task is scheduled to run now, break the waiting thread and 85 //run it immediately 86 if (task.Schedule == Schedule.RunNow) 87 { 88 QueueTask(task); 89 } 90 //If the task is scheduled, add the next execution time to the list 91 //of schduled tasks. 92 else if (task.Schedule != Schedule.RunOnRestart) 93 { 94 ScheduleTask(task); 95 } 98 96 } 99 97 … … 835 833 { 836 834 using (FileStream strm = new FileStream(Path.Combine( 837 tempDir.FullName, GenerateRandomFileName( 18)),835 tempDir.FullName, GenerateRandomFileName(220)), 838 836 FileMode.CreateNew, FileAccess.Write)) 839 837 { … … 861 859 { 862 860 //Clear up all the temporary files 863 tempDir.Delete(true);861 RemoveFolder(tempDir); 864 862 } 865 863 }
Note: See TracChangeset
for help on using the changeset viewer.
