From 5b0d8935e8ce0491521740abb039c021e1aba2b5 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 4 Sep 2002 14:01:29 +0000 Subject: [PATCH] Call abort() on the scriptingEngine to let it know that the current execution is being aborted. --- src/helma/framework/core/RequestEvaluator.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 3502a1e7..0c1b7019 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -599,7 +599,9 @@ public final class RequestEvaluator implements Runnable { public synchronized void stopThread () { app.logEvent ("Stopping Thread "+rtx); Transactor t = rtx; - // evaluator.thread = null; + // let the scripting engine know that the + // current transaction is being aborted. + scriptingEngine.abort (); rtx = null; if (t != null) { if (reqtype != NONE) { @@ -608,8 +610,6 @@ public final class RequestEvaluator implements Runnable { try { t.abort (); } catch (Exception ignore) {} - // FIXME: do not call deprecated method stop() on threads - - // do we need a substitute for it? } else { notifyAll (); } @@ -625,7 +625,6 @@ public final class RequestEvaluator implements Runnable { if (rtx == null || !rtx.isAlive()) { // app.logEvent ("Starting Thread"); rtx = new Transactor (this, app.threadgroup, app.nmgr); - // evaluator.thread = rtx; rtx.start (); } else { notifyAll ();