From 51405c1f43aa4aa9788b98646048dde44ca529d3 Mon Sep 17 00:00:00 2001 From: Pepich Date: Thu, 2 Mar 2017 19:24:22 +0100 Subject: [PATCH] Made WebToken autoreconnect --- src/com/redstoner/modules/webtoken/WebToken.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/webtoken/WebToken.java b/src/com/redstoner/modules/webtoken/WebToken.java index c8b5c59..23bfc7e 100644 --- a/src/com/redstoner/modules/webtoken/WebToken.java +++ b/src/com/redstoner/modules/webtoken/WebToken.java @@ -22,7 +22,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase; import com.redstoner.misc.mysql.elements.MysqlTable; import com.redstoner.modules.Module; -@Version(major = 1, minor = 1, revision = 0, compatible = 1) +@Version(major = 1, minor = 1, revision = 1, compatible = 1) public class WebToken implements Module { private boolean enabled = false; @@ -55,7 +55,7 @@ public class WebToken implements Module } try { - MysqlDatabase database = MysqlHandler.INSTANCE.getDatabase(config.get("database")); + MysqlDatabase database = MysqlHandler.INSTANCE.getDatabase(config.get("database") + "?autoReconnect=true"); table = database.getTable(config.get("table")); } catch (NullPointerException e)