IDEMPIERE-6016:trx timeout make leak connection by call Connection.about but not call Connection.close (#2210)
This commit is contained in:
parent
4ce00dfaa4
commit
b9fbd91571
|
@ -479,7 +479,10 @@ public class Trx
|
||||||
// Close Connection
|
// Close Connection
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
// Closes any physical connection to the database
|
||||||
m_connection.abort(Runnable::run);
|
m_connection.abort(Runnable::run);
|
||||||
|
// return to pool manage (pool will validate and re-connect to database)
|
||||||
|
m_connection.close();
|
||||||
m_connection = null;
|
m_connection = null;
|
||||||
m_active = false;
|
m_active = false;
|
||||||
fireAfterCloseEvent();
|
fireAfterCloseEvent();
|
||||||
|
|
Loading…
Reference in New Issue