Skip to content

Commit

Permalink
fix(velocity): correctly repeat tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
confuser committed Dec 11, 2024
1 parent 4231530 commit a2a0db4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public void setupRunnables() {
private void setupAsyncRunnable(long length, Runnable runnable) {
if (length <= 0) return;

server.getScheduler().buildTask(this, runnable).delay(length, TimeUnit.SECONDS).schedule();
server.getScheduler().buildTask(this, runnable).repeat(length, TimeUnit.SECONDS).schedule();
}
@SneakyThrows
private InputStream getResourceAsStream(String resource) {
Expand Down

0 comments on commit a2a0db4

Please sign in to comment.