From db69da5b07365302b0aae61a265aa90ab6a8cbc3 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 9 Aug 2016 08:52:22 +1000 Subject: [PATCH] *Wrong runnable --- .../plot/util/expiry/ExpireManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java b/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java index c75290f7f..90b99c1c7 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java @@ -220,6 +220,7 @@ public class ExpireManager { TaskManager.runTaskAsync(new Runnable() { @Override public void run() { + final Runnable task = this; if (ExpireManager.this.running != 2) { ExpireManager.this.running = 0; return; @@ -242,13 +243,12 @@ public class ExpireManager { expiredTask.run(plot, new Runnable() { @Override public void run() { - TaskManager.IMP.taskLaterAsync(this, 1); + TaskManager.IMP.taskLaterAsync(task, 1); } }, expiryTask.requiresConfirmation()); return; } } - final Runnable task = this; final RunnableVal handleAnalysis = new RunnableVal() { @Override public void run(final PlotAnalysis changed) { @@ -308,7 +308,7 @@ public class ExpireManager { } }, 86400000); } else { - TaskManager.runTaskLaterAsync(this, 20 * 10); + TaskManager.runTaskLaterAsync(task, 20 * 10); } } });