mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 12:45:57 +01:00
Fix logic of waiting unfinished tasks
This commit is contained in:
parent
562ed40f70
commit
a3a3e94cd4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user