bad fix to force reconnect?
This commit is contained in:
parent
723847a3be
commit
9ed3146a73
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user