From f4bcbd20bc64a4d936388765bfec9135fe6c06da Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 24 Jul 2009 17:01:51 +0000 Subject: [PATCH] Fix [2826660] - Info product performance BIG problem https://sourceforge.net/tracker/?func=detail&aid=2826660&group_id=176962&atid=879332 --- client/src/org/compiere/apps/search/Info.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client/src/org/compiere/apps/search/Info.java b/client/src/org/compiere/apps/search/Info.java index 8f95ccef3b..c1943d9043 100644 --- a/client/src/org/compiere/apps/search/Info.java +++ b/client/src/org/compiere/apps/search/Info.java @@ -1143,6 +1143,22 @@ public abstract class Info extends CDialog m_rs = null; m_pstmt = null; } + + /** + * Interrupt this thread - cancel the query if still in execution + * Carlos Ruiz - globalqss - [2826660] - Info product performance BIG problem + */ + public void interrupt() { + if (m_pstmt != null) { + try { + m_pstmt.cancel(); + close(); + } catch (SQLException e) { + log.log(Level.SEVERE, "Cannot cancel SQL statement", e); + } + } + super.interrupt(); + } } // Worker } // Info