diff options
Diffstat (limited to 'plugin/icedteanp/java/netscape/javascript/JSRunnable.java')
-rw-r--r-- | plugin/icedteanp/java/netscape/javascript/JSRunnable.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/plugin/icedteanp/java/netscape/javascript/JSRunnable.java b/plugin/icedteanp/java/netscape/javascript/JSRunnable.java index 8f1cf72..df245a7 100644 --- a/plugin/icedteanp/java/netscape/javascript/JSRunnable.java +++ b/plugin/icedteanp/java/netscape/javascript/JSRunnable.java @@ -45,28 +45,28 @@ import sun.applet.PluginDebug; * Runs a JavaScript object with a run() method in a separate thread. */ public class JSRunnable implements Runnable { - private JSObject runnable; + private JSObject runnable; - public JSRunnable(JSObject runnable) { - this.runnable = runnable; - synchronized(this) { - new Thread(this).start(); - try { - this.wait(); - } catch (InterruptedException ie) { - } - } - } - - public void run() { - try { - runnable.call("run", null); - synchronized(this) { - notifyAll(); - } - } catch (Throwable t) { - PluginDebug.debug(t.toString()); - t.printStackTrace(System.err); - } - } + public JSRunnable(JSObject runnable) { + this.runnable = runnable; + synchronized (this) { + new Thread(this).start(); + try { + this.wait(); + } catch (InterruptedException ie) { + } + } + } + + public void run() { + try { + runnable.call("run", null); + synchronized (this) { + notifyAll(); + } + } catch (Throwable t) { + PluginDebug.debug(t.toString()); + t.printStackTrace(System.err); + } + } } |