* Make usage of deprecated Thread.stop() dependent on setting of

requestTimeoutStop = true|false app property
This commit is contained in:
hns 2006-05-11 19:22:07 +00:00
parent 5c1714d855
commit 676f4a06f0

View file

@ -386,6 +386,7 @@ public class RhinoEngine implements ScriptingEngine {
Thread t = thread;
if (t != null && t.isAlive()) {
t.interrupt();
if ("true".equals(app.getProperty("requestTimeoutStop", "true"))) {
try {
Thread.sleep(5000);
if (t.isAlive()) {
@ -397,6 +398,7 @@ public class RhinoEngine implements ScriptingEngine {
}
}
}
}
/**
* Check if an object has a function property (public method if it