* invokeAsync(): put running->true in original thread to avoid trap.
This commit is contained in:
parent
80740b46a4
commit
ecfa47bdc7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue