Cancel delayed/repeating tasks at the start of the disable process (#1935)

This commit is contained in:
Luck committed 2020-01-25 12:38:24 +00:00
1 parent e9d72df890
commit 0864cf756c
6 files changed
+43 -9

No files matched your search

@@ -101,8 +101,12 @@ public class SpongeSchedulerAdapter implements SchedulerAdapter {
}
@Override
public void shutdown() {
public void shutdownScheduler() {
Iterators.tryIterate(this.tasks, Task::cancel);
}
@Override
public void shutdownExecutor() {
// do nothing
}
}