Don't wrap buffer tasks in scheduler calls

This commit is contained in:
Luck
2016-10-29 21:23:30 +01:00
Unverified
parent c0ea2d8ec3
commit a99609e016
3 changed files with 3 additions and 3 deletions
@@ -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;
}
};
@@ -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;
}
};
@@ -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;
}
};