From fc0e35a67c389bd1e7477460eeafcbaacf736d19 Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Fri, 28 Sep 2012 02:39:22 -0500 Subject: [PATCH] Fix typo causing a task to be repeated in debug. Addresses BUKKIT-2549 An internal method for making the debug output for CraftScheduler's async tasks was erroneously using the 'this' reference when the loop should be referencing the current task. --- .../org/bukkit/craftbukkit/scheduler/CraftAsyncDebugger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncDebugger.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncDebugger.java index 2899bacf57..d80ae50d76 100644 --- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncDebugger.java +++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncDebugger.java @@ -30,7 +30,7 @@ class CraftAsyncDebugger { StringBuilder debugTo(final StringBuilder string) { for (CraftAsyncDebugger next = this; next != null; next = next.next) { - string.append(plugin.getDescription().getName()).append(':').append(clazz.getName()).append('@').append(expiry).append(','); + string.append(next.plugin.getDescription().getName()).append(':').append(next.clazz.getName()).append('@').append(next.expiry).append(','); } return string; }