src/Pure/Concurrent/standard_thread.scala
changeset 71691 d682b4000a77
parent 71690 fef74c06cfac
--- a/src/Pure/Concurrent/standard_thread.scala	Sat Apr 04 21:16:06 2020 +0200
+++ b/src/Pure/Concurrent/standard_thread.scala	Sat Apr 04 21:38:20 2020 +0200
@@ -30,8 +30,8 @@
     uninterruptible: Boolean = false)(body: => Unit): Standard_Thread =
   {
     val main =
-      if (uninterruptible) new Runnable { override def run { body } }
-      else new Runnable { override def run { Standard_Thread.uninterruptible { body } } }
+      if (uninterruptible) new Runnable { override def run { Standard_Thread.uninterruptible { body } } }
+      else new Runnable { override def run { body } }
     val thread =
       new Standard_Thread(main, name = make_name(name = name), group = group,
         pri = pri, daemon = daemon, inherit_locals = inherit_locals)