Closed MinecraftMan1013number2 closed 2 months ago
I did a little bit of testing by adding broadcasts to SQLiteDatabase#getConnection()
as follows:
private Connection getConnection() throws SQLException {
if (connection == null) {
Bukkit.broadcastMessage("connection null");
setConnection();
} else if (connection.isClosed()) {
Bukkit.broadcastMessage("connection closed");
setConnection();
}
return connection;
}
The result was this
Somehow the connection is being closed,
I don't know if this happens for MySQL as well, but for SQLite, it says that the database was connected to every single time something about the data is changed.