*Fix compile error

This commit is contained in:
Jesse Boyd 2016-11-24 11:05:28 +11:00
parent 8ebf71c87f
commit deb5441bcf
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -134,14 +134,10 @@ public class SQLManager implements AbstractDB {
} }
boolean hasTask = !globalTasks.isEmpty() || !playerTasks.isEmpty() || !plotTasks.isEmpty() || !clusterTasks.isEmpty(); boolean hasTask = !globalTasks.isEmpty() || !playerTasks.isEmpty() || !plotTasks.isEmpty() || !clusterTasks.isEmpty();
if (hasTask) { if (hasTask) {
try {
if (SQLManager.this.mySQL && System.currentTimeMillis() - last > 550000 || !isValid()) { if (SQLManager.this.mySQL && System.currentTimeMillis() - last > 550000 || !isValid()) {
last = System.currentTimeMillis(); last = System.currentTimeMillis();
reconnect(); reconnect();
} }
} catch (SQLException impossible) {
impossible.printStackTrace();
}
if (!sendBatch()) { if (!sendBatch()) {
try { try {
if (!getNotifyTasks().isEmpty()) { if (!getNotifyTasks().isEmpty()) {