From 94a566acc96ca538807e65eb12e0649115170c08 Mon Sep 17 00:00:00 2001 From: zreed Date: Tue, 8 Jul 2014 21:25:40 -0400 Subject: [PATCH] Remove redundant maxReconnects database connection property --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index d44acbe9b..a59936545 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -27,6 +27,7 @@ Version 1.5.01-dev = Fixed bug where Alchemy would not fire BrewEvents = Fixed bug with setting custom names and lore in treasures config = Fixed bug which would cause a NullPointerException with getFlowerAndGrassXp() + = Fixed bug which could cause and SQLException regarding the connection property 'maxReconnects'. ! Changed SecondaryAbilityEvent to implement Cancellable and it now gets fired for damage related secondary abilities ! Changed the way mcMMO handles bonus damage, updated for the new damage event API ! Changed player data saving. Save tasks are now asynchronous diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index b0eeff586..663577583 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -618,7 +618,6 @@ public final class SQLDatabaseManager implements DatabaseManager { connectionProperties.put("user", Config.getInstance().getMySQLUserName()); connectionProperties.put("password", Config.getInstance().getMySQLUserPassword()); connectionProperties.put("autoReconnect", "false"); - connectionProperties.put("maxReconnects", "0"); connection = DriverManager.getConnection(connectionString, connectionProperties); mcMMO.p.getLogger().info("Connection to MySQL was a success!");