Correctly close flatfile database connections on disable, catch all exceptions when performing initial data load

This commit is contained in:
Luck
2017-12-22 22:35:13 +00:00
Unverified
parent cc3ddd51fd
commit 0b72507e2d
5 changed files with 24 additions and 6 deletions
@@ -279,7 +279,11 @@ public class LPSpongePlugin implements LuckPermsPlugin {
// run an update instantly.
getLog().info("Performing initial data load...");
new UpdateTask(this, true).run();
try {
new UpdateTask(this, true).run();
} catch (Exception e) {
e.printStackTrace();
}
// register tasks
scheduler.asyncRepeating(new ExpireTemporaryTask(this), 60L);