From ecfa47bdc7b44e297c70c9723d263f9797fabbd3 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 28 Mar 2007 20:54:43 +0000 Subject: [PATCH] * invokeAsync(): put running->true in original thread to avoid trap. --- src/helma/framework/core/ApplicationBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/framework/core/ApplicationBean.java b/src/helma/framework/core/ApplicationBean.java index 95a286a6..4baf1629 100644 --- a/src/helma/framework/core/ApplicationBean.java +++ b/src/helma/framework/core/ApplicationBean.java @@ -709,10 +709,10 @@ public class ApplicationBean implements Serializable { final Object[] args, final long timeout) { final SystemMap map = new SystemMap(); + map.put("running", Boolean.TRUE); new Thread() { public void run() { RequestEvaluator reval = app.getEvaluator(); - map.put("running", Boolean.TRUE); try { map.put("result", reval.invokeInternal(thisObject, function, args, timeout)); } catch (Exception x) {