mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Fix first execution of async delayed/repeating tasks being sync (#12166)
This commit is contained in:
@@ -181,7 +181,7 @@ public final class FoliaAsyncScheduler implements AsyncScheduler {
|
||||
|
||||
private void setDelay(final ScheduledFuture<?> delay) {
|
||||
this.delay = delay;
|
||||
this.state = STATE_SCHEDULED_EXECUTOR;
|
||||
this.state = delay == null ? STATE_SCHEDULED_EXECUTOR : STATE_ON_TIMER;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user