bad fix to force reconnect?

This commit is contained in:
Teriuihi 2022-11-09 03:13:56 +01:00
parent 723847a3be
commit 9ed3146a73

View File

@ -54,6 +54,9 @@ public class Database {
public Connection getConnection() {
try {
instance.openConnection();
if (!instance.connection.isValid(50)) {
instance.connection.prepareStatement("SHOW TABLES").executeQuery();
}
}
catch (SQLException e) {
Logger.sql(e);