提交 7feb3cfa authored 作者: Noel Grandin's avatar Noel Grandin

vmlens: fix race condition on JdbcConnection.executingStatement

上级 c9242853
......@@ -361,14 +361,14 @@ public class JdbcConnection extends TraceObject implements Connection,
}
CloseWatcher.unregister(watcher);
session.cancel();
if (executingStatement != null) {
try {
executingStatement.cancel();
} catch (NullPointerException e) {
// ignore
}
}
synchronized (session) {
if (executingStatement != null) {
try {
executingStatement.cancel();
} catch (NullPointerException e) {
// ignore
}
}
try {
if (!session.isClosed()) {
try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论