invoke later to reduce chance of causing deadlock;
authorwenzelm
Tue, 21 Feb 2012 16:42:57 +0100
changeset 46574 41701fce8ac7
parent 46573 8c4c5c8dcf7a
child 46575 f1e387195a56
invoke later to reduce chance of causing deadlock;
src/Pure/System/swing_thread.scala
--- a/src/Pure/System/swing_thread.scala	Tue Feb 21 16:28:18 2012 +0100
+++ b/src/Pure/System/swing_thread.scala	Tue Feb 21 16:42:57 2012 +0100
@@ -53,7 +53,7 @@
     val timer = new Timer(time.ms.toInt, listener)
     timer.setRepeats(false)
 
-    def invoke() { now { if (first) timer.start() else timer.restart() } }
+    def invoke() { later { if (first) timer.start() else timer.restart() } }
     invoke _
   }