|
|
@ -196,11 +196,7 @@ impl RunnerTask { |
|
|
|
|
|
|
|
|
|
|
|
fn process_queue(&mut self, run_queue: &mut VecDeque<SecRun>) { |
|
|
|
fn process_queue(&mut self, run_queue: &mut VecDeque<SecRun>) { |
|
|
|
use RunState::*; |
|
|
|
use RunState::*; |
|
|
|
loop { |
|
|
|
while let Some(current_run) = run_queue.front_mut() { |
|
|
|
let current_run = match run_queue.front_mut() { |
|
|
|
|
|
|
|
Some(current_run) => current_run, |
|
|
|
|
|
|
|
None => break, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
let run_finished = match (¤t_run.state, self.paused) { |
|
|
|
let run_finished = match (¤t_run.state, self.paused) { |
|
|
|
(Waiting, false) => { |
|
|
|
(Waiting, false) => { |
|
|
|
self.start_run(current_run); |
|
|
|
self.start_run(current_run); |
|
|
|