From ceb056e6d894827550f41b6accd1fade187c8e79 Mon Sep 17 00:00:00 2001 From: hengsin Date: Fri, 19 Nov 2021 23:12:39 +0800 Subject: [PATCH] IDEMPIERE-5048 Minor fix for Scheduler and SvrProcess: set m_trx to null (#989) --- org.adempiere.base/src/org/compiere/process/SvrProcess.java | 1 + .../src/main/server/org/compiere/server/Scheduler.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/process/SvrProcess.java b/org.adempiere.base/src/org/compiere/process/SvrProcess.java index 2e5e4f6075..2a4deb02ec 100644 --- a/org.adempiere.base/src/org/compiere/process/SvrProcess.java +++ b/org.adempiere.base/src/org/compiere/process/SvrProcess.java @@ -213,6 +213,7 @@ public abstract class SvrProcess implements ProcessCall unlock(); // outside transaction processing [ teo_sarca, 1646891 ] + m_trx = null; postProcess(!m_pi.isError()); @SuppressWarnings("unused") Event eventPP = sendProcessEvent(IEventTopics.POST_PROCESS); diff --git a/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java b/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java index f7b78380c3..4914646824 100644 --- a/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java +++ b/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java @@ -152,7 +152,7 @@ public class Scheduler extends AdempiereServer { if (m_trx != null) m_trx.close(); - + m_trx = null; session.logout(); getCtx().remove(Env.AD_SESSION_ID); }