Changeset 1790


Ignore:
Timestamp:
2/10/2010 2:49:25 AM (4 years ago)
Author:
lowjoel
Message:

Supplants r1777. Moved a code fragment from the DirectExecutor?.Main to DirectExecutor?.ExecuteTask? method (since it logically belongs there)

File:
1 edited

Legend:

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

    r1779 r1790  
    252252                if (task != null) 
    253253                { 
    254                     //Set the currently executing task. 
    255                     currentTask = task; 
    256  
    257                     //Prevent the system from sleeping. 
    258                     Power.ExecutionState = ExecutionState.Continuous | ExecutionState.SystemRequired; 
    259  
    260254                    //Start a new log session to separate this session's events 
    261255                    //from previous ones. 
     
    279273        private void ExecuteTask(Task task) 
    280274        { 
     275            //Set the currently executing task. 
     276            currentTask = task; 
     277 
     278            //Prevent the system from sleeping. 
     279            Power.ExecutionState = ExecutionState.Continuous | ExecutionState.SystemRequired; 
     280 
    281281            try 
    282282            { 
Note: See TracChangeset for help on using the changeset viewer.