Don't wrap buffer tasks in scheduler calls

This commit is contained in:
Luck 2016-10-29 21:23:30 +01:00
parent c0ea2d8ec3
commit a99609e016
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
3 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
updateTaskBuffer = new BufferedRequest<Void>(1000L, this::doAsync) {
@Override
protected Void perform() {
doAsync(new UpdateTask(LPBukkitPlugin.this));
new UpdateTask(LPBukkitPlugin.this).run();
return null;
}
};

View File

@ -114,7 +114,7 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin {
updateTaskBuffer = new BufferedRequest<Void>(1000L, this::doAsync) {
@Override
protected Void perform() {
doAsync(new UpdateTask(LPBungeePlugin.this));
new UpdateTask(LPBungeePlugin.this).run();
return null;
}
};

View File

@ -154,7 +154,7 @@ public class LPSpongePlugin implements LuckPermsPlugin {
updateTaskBuffer = new BufferedRequest<Void>(1000L, this::doAsync) {
@Override
protected Void perform() {
doAsync(new UpdateTask(LPSpongePlugin.this));
new UpdateTask(LPSpongePlugin.this).run();
return null;
}
};