IDEMPIERE-5048 Minor fix for Scheduler and SvrProcess: set m_trx to null (#989)
This commit is contained in:
parent
29f5186d41
commit
ceb056e6d8
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue