* invokeAsync(): put running->true in original thread to avoid trap.

This commit is contained in:
hns 2007-03-28 20:54:43 +00:00
parent 80740b46a4
commit ecfa47bdc7

View file

@ -709,10 +709,10 @@ public class ApplicationBean implements Serializable {
final Object[] args, final Object[] args,
final long timeout) { final long timeout) {
final SystemMap map = new SystemMap(); final SystemMap map = new SystemMap();
map.put("running", Boolean.TRUE);
new Thread() { new Thread() {
public void run() { public void run() {
RequestEvaluator reval = app.getEvaluator(); RequestEvaluator reval = app.getEvaluator();
map.put("running", Boolean.TRUE);
try { try {
map.put("result", reval.invokeInternal(thisObject, function, args, timeout)); map.put("result", reval.invokeInternal(thisObject, function, args, timeout));
} catch (Exception x) { } catch (Exception x) {