IDEMPIERE-6016:trx timeout make leak connection by call Connection.about but not call Connection.close (#2210)

This commit is contained in:
hieplq 2024-01-26 20:44:57 +07:00 committed by Carlos Ruiz
parent 4ce00dfaa4
commit b9fbd91571
1 changed files with 3 additions and 0 deletions

View File

@ -479,7 +479,10 @@ public class Trx
// Close Connection
try
{
// Closes any physical connection to the database
m_connection.abort(Runnable::run);
// return to pool manage (pool will validate and re-connect to database)
m_connection.close();
m_connection = null;
m_active = false;
fireAfterCloseEvent();