jdk/src/share/classes/javax/swing/JApplet.java
changeset 1273 3b2eba521268
parent 2 90ce3da70b43
child 5506 202f599c92aa
--- a/jdk/src/share/classes/javax/swing/JApplet.java	Thu Jun 19 18:03:43 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/JApplet.java	Mon Jun 23 15:21:37 2008 -0400
@@ -131,10 +131,7 @@
         // Check the timerQ and restart if necessary.
         TimerQueue q = TimerQueue.sharedInstance();
         if(q != null) {
-            synchronized(q) {
-                if(!q.running)
-                    q.start();
-            }
+            q.startIfNeeded();
         }
 
         /* Workaround for bug 4155072.  The shared double buffer image