From deb5441bcf1865e4037d18ec49999e33d3bf08a3 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 24 Nov 2016 11:05:28 +1100 Subject: [PATCH] *Fix compile error --- .../intellectualcrafters/plot/database/SQLManager.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java b/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java index 63d811bc4..ce3fc4319 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java @@ -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 {