Changeset 475


Ignore:
Timestamp:
11/7/2008 8:48:42 AM (6 years ago)
Author:
lowjoel
Message:

Fixed a logic error in my task deletion code.

File:
1 edited

Legend:

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

    r445 r475  
    105105                tasks.Remove(taskId); 
    106106 
    107                 for (int i = 0; i != scheduledTasks.Count; ++i) 
     107                for (int i = 0; i != scheduledTasks.Count; ) 
    108108                    if (scheduledTasks.Values[i].id == taskId) 
    109109                        scheduledTasks.RemoveAt(i); 
     110                    else 
     111                        ++i; 
    110112            } 
    111113 
Note: See TracChangeset for help on using the changeset viewer.