IDEMPIERE-5048 Minor fix for Scheduler and SvrProcess: set m_trx to null (#989)

This commit is contained in:
hengsin 2021-11-19 23:12:39 +08:00 committed by GitHub
parent 29f5186d41
commit ceb056e6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -213,6 +213,7 @@ public abstract class SvrProcess implements ProcessCall
unlock(); unlock();
// outside transaction processing [ teo_sarca, 1646891 ] // outside transaction processing [ teo_sarca, 1646891 ]
m_trx = null;
postProcess(!m_pi.isError()); postProcess(!m_pi.isError());
@SuppressWarnings("unused") @SuppressWarnings("unused")
Event eventPP = sendProcessEvent(IEventTopics.POST_PROCESS); Event eventPP = sendProcessEvent(IEventTopics.POST_PROCESS);

View File

@ -152,7 +152,7 @@ public class Scheduler extends AdempiereServer
{ {
if (m_trx != null) if (m_trx != null)
m_trx.close(); m_trx.close();
m_trx = null;
session.logout(); session.logout();
getCtx().remove(Env.AD_SESSION_ID); getCtx().remove(Env.AD_SESSION_ID);
} }