src/Pure/PIDE/session.scala
changeset 77243 629dce95bb5c
parent 77199 7d7786585ab0
child 80300 152d6c58adb3
equal deleted inserted replaced
77242:7c89e848bd18 77243:629dce95bb5c
   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