Run user cleanup task async and not on Storage init

This commit is contained in:
Luck committed 2017-09-03 16:16:21 +01:00
1 parent 509826949d
commit fbe9d9f128
1 file changed
+3 -1
@@ -109,7 +109,9 @@ public abstract class FlatfileBacking extends AbstractBacking {
e.printStackTrace();
}
cleanupUsers();
// schedule user cleanup
plugin.getScheduler().asyncLater(this::cleanupUsers, 10L);
setAcceptingLogins(true);
}