src/Pure/System/session.scala
changeset 48712 6b7a9bcc0bae
parent 48710 5b51ccdc8623
child 48713 de26cf3191a3
--- a/src/Pure/System/session.scala	Tue Aug 07 17:46:30 2012 +0200
+++ b/src/Pure/System/session.scala	Tue Aug 07 19:16:58 2012 +0200
@@ -351,16 +351,16 @@
         case Isabelle_Markup.Cancel_Scala(id) if output.is_protocol =>
           System.err.println("cancel_scala " + id)  // FIXME actually cancel JVM task
 
-        case Isabelle_Markup.Ready if output.is_protocol =>
+        case _ if output.is_init =>
             phase = Session.Ready
 
         case Isabelle_Markup.Return_Code(rc) if output.is_exit =>
           if (rc == 0) phase = Session.Inactive
           else phase = Session.Failed
 
-        case _ =>
-          if (output.is_init || output.is_stdout) { }
-          else bad_output(output)
+        case _ if output.is_stdout =>
+
+        case _ => bad_output(output)
       }
     }
     //}}}