aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/icedteanp/java')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginAppletViewer.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
index 1f56037..3feedd6 100644
--- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
+++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
@@ -665,18 +665,7 @@ public class PluginAppletViewer extends XEmbeddedFrame
if (message.startsWith("width")) {
// Wait for panel to come alive
- long maxTimeToSleep = APPLET_TIMEOUT;
- statusLock.lock();
- try {
- while (!status.get(identifier).equals(PAV_INIT_STATUS.INIT_COMPLETE) &&
- maxTimeToSleep > 0) {
- maxTimeToSleep -= waitTillTimeout(statusLock, initComplete,
- maxTimeToSleep);
- }
- }
- finally {
- statusLock.unlock();
- }
+ waitForAppletInit(panel);
// 0 => width, 1=> width_value, 2 => height, 3=> height_value
String[] dimMsg = message.split(" ");