Fix [2826660] - Info product performance BIG problem
https://sourceforge.net/tracker/?func=detail&aid=2826660&group_id=176962&atid=879332
This commit is contained in:
parent
51e674135c
commit
f4bcbd20bc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue