Close the statement here as well

This commit is contained in:
TfT_02 2014-08-21 14:33:50 -06:00
parent 574cdd374b
commit c878775c72

View File

@ -326,6 +326,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
statement.setString(1, profile.getMobHealthbarType() == null ? Config.getInstance().getMobHealthbarDefault().name() : profile.getMobHealthbarType().name()); statement.setString(1, profile.getMobHealthbarType() == null ? Config.getInstance().getMobHealthbarDefault().name() : profile.getMobHealthbarType().name());
statement.setInt(2, id); statement.setInt(2, id);
success = (statement.executeUpdate() != 0); success = (statement.executeUpdate() != 0);
statement.close();
} }
catch (SQLException ex) { catch (SQLException ex) {
printErrors(ex); printErrors(ex);