13
0
geforkt von Mirrors/Paper

Fix active async tasks not cancelled by CraftScheduler#cancelTasks(Plugin)

Dieser Commit ist enthalten in:
blablubbabc 2017-08-29 13:19:14 +02:00 committet von md_5
Ursprung 94b0980852
Commit ee91bce157

Datei anzeigen

@ -226,7 +226,7 @@ public class CraftScheduler implements BukkitScheduler {
handle(task, 0l); handle(task, 0l);
for (CraftTask taskPending = head.getNext(); taskPending != null; taskPending = taskPending.getNext()) { for (CraftTask taskPending = head.getNext(); taskPending != null; taskPending = taskPending.getNext()) {
if (taskPending == task) { if (taskPending == task) {
return; break;
} }
if (taskPending.getTaskId() != -1 && taskPending.getOwner().equals(plugin)) { if (taskPending.getTaskId() != -1 && taskPending.getOwner().equals(plugin)) {
taskPending.cancel0(); taskPending.cancel0();