mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-01-10 17:08:10 +00:00
*Fix compile error
This commit is contained in:
parent
8ebf71c87f
commit
deb5441bcf
1 changed files with 3 additions and 7 deletions
|
@ -134,13 +134,9 @@ public class SQLManager implements AbstractDB {
|
|||
}
|
||||
boolean hasTask = !globalTasks.isEmpty() || !playerTasks.isEmpty() || !plotTasks.isEmpty() || !clusterTasks.isEmpty();
|
||||
if (hasTask) {
|
||||
try {
|
||||
if (SQLManager.this.mySQL && System.currentTimeMillis() - last > 550000 || !isValid()) {
|
||||
last = System.currentTimeMillis();
|
||||
reconnect();
|
||||
}
|
||||
} catch (SQLException impossible) {
|
||||
impossible.printStackTrace();
|
||||
if (SQLManager.this.mySQL && System.currentTimeMillis() - last > 550000 || !isValid()) {
|
||||
last = System.currentTimeMillis();
|
||||
reconnect();
|
||||
}
|
||||
if (!sendBatch()) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue