Made check connection auto reconnect to prevent timeouts breaking stuff
This commit is contained in:
parent
54cd39f7f3
commit
37f7a1db88
@ -31,7 +31,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase;
|
||||
import com.redstoner.misc.mysql.elements.MysqlTable;
|
||||
import com.redstoner.modules.Module;
|
||||
|
||||
@Version(major = 1, minor = 0, revision = 6, compatible = 1)
|
||||
@Version(major = 1, minor = 0, revision = 7, compatible = 1)
|
||||
public class Check implements Module, Listener
|
||||
{
|
||||
private boolean enabled = false;
|
||||
@ -49,7 +49,8 @@ public class Check implements Module, Listener
|
||||
}
|
||||
try
|
||||
{
|
||||
MysqlDatabase database = MysqlHandler.INSTANCE.getDatabase((String) config.get("database"));
|
||||
MysqlDatabase database = MysqlHandler.INSTANCE
|
||||
.getDatabase((String) config.get("database") + "?autoReconnect=true");
|
||||
table = database.getTable((String) config.get("table"));
|
||||
}
|
||||
catch (NullPointerException e)
|
||||
|
Reference in New Issue
Block a user