#1638 conn closed by other (#1639)

This commit is contained in:
tiger.yan
2020-01-16 17:45:02 +08:00
committed by GitHub
parent 3913e41f4c
commit 5b42446a84
@@ -80,7 +80,7 @@ public class MySQLDetector implements SQLQueryResultListener<SQLQueryResult<Map<
}
public void heartbeat() {
if (con == null) {
if (con == null || con.isClosed()) {
heartbeat.setResult(MySQLHeartbeat.ERROR_STATUS);
return;
}