Run user cleanup task async and not on Storage init

This commit is contained in:
Luck 2017-09-03 16:16:21 +01:00
parent 509826949d
commit fbe9d9f128
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -109,7 +109,9 @@ public abstract class FlatfileBacking extends AbstractBacking {
e.printStackTrace();
}
cleanupUsers();
// schedule user cleanup
plugin.getScheduler().asyncLater(this::cleanupUsers, 10L);
setAcceptingLogins(true);
}