Fix logic of waiting unfinished tasks

This commit is contained in:
games647 2016-01-18 22:00:17 +01:00
parent 562ed40f70
commit a3a3e94cd4

View File

@ -540,7 +540,7 @@ public class AuthMe extends JavaPlugin {
List<BukkitTask> pendingTasks = getServer().getScheduler().getPendingTasks();
for (Iterator<BukkitTask> 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();
}