equal
deleted
inserted
replaced
725 val was_ready = |
725 val was_ready = |
726 _phase.guarded_access( |
726 _phase.guarded_access( |
727 { |
727 { |
728 case Session.Startup | Session.Shutdown => None |
728 case Session.Startup | Session.Shutdown => None |
729 case Session.Terminated(_) => Some((false, phase)) |
729 case Session.Terminated(_) => Some((false, phase)) |
730 case Session.Inactive => Some((false, post_phase(Session.Terminated(Process_Result(0))))) |
730 case Session.Inactive => Some((false, post_phase(Session.Terminated(Process_Result.ok)))) |
731 case Session.Ready => Some((true, post_phase(Session.Shutdown))) |
731 case Session.Ready => Some((true, post_phase(Session.Shutdown))) |
732 }) |
732 }) |
733 if (was_ready) manager.send(Stop) |
733 if (was_ready) manager.send(Stop) |
734 prover.await_reset() |
734 prover.await_reset() |
735 |
735 |