From a3a3e94cd474f858981c827241f55b22e4472916 Mon Sep 17 00:00:00 2001 From: games647 Date: Mon, 18 Jan 2016 22:00:17 +0100 Subject: [PATCH] Fix logic of waiting unfinished tasks --- src/main/java/fr/xephi/authme/AuthMe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index 51bac6980..1b39b3440 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -540,7 +540,7 @@ public class AuthMe extends JavaPlugin { List pendingTasks = getServer().getScheduler().getPendingTasks(); for (Iterator iterator = pendingTasks.iterator(); iterator.hasNext();) { BukkitTask pendingTask = iterator.next(); - if (pendingTask.getOwner().equals(this) || pendingTask.isSync()) { + if (!pendingTask.getOwner().equals(this) || pendingTask.isSync()) { //remove all unrelevant tasks iterator.remove(); }