mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-07 17:28:03 +08:00
Delayed database index creation by a minute
This is to prevent issues with possible patching that is going on.
This commit is contained in:
parent
fd22735084
commit
dbe54f918b
@ -234,7 +234,7 @@ public abstract class SQLDB extends Database {
|
||||
private void registerIndexCreationTask() {
|
||||
try {
|
||||
runnableFactory.create("Database Index Creation", new CreateIndexTask(this))
|
||||
.runTaskAsynchronously();
|
||||
.runTaskLaterAsynchronously(TimeAmount.toTicks(1, TimeUnit.MINUTES));
|
||||
} catch (Exception ignore) {
|
||||
// Task failed to register because plugin is being disabled
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user