--- Scheduler.pm.old 2005-05-09 16:55:00.000000000 -0700 +++ Scheduler.pm 2005-08-05 13:58:33.859375000 -0700 @@ -50,9 +50,8 @@ sub remove_task { while ($i < scalar (@background_tasks)) { if (@{$taskref} eq @{$background_tasks[$i]}) { splice @background_tasks, $i, 1; - } else { - $i++; } + $i++; } # loop around when we get to the end of the list if ($curtask >= (@background_tasks)) {