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

This commit is contained in:
Luck committed 2017-12-22 22:35:13 +00:00
1 parent cc3ddd51fd
commit 0b72507e2d
5 files changed
+24 -6

No files matched your search

@@ -210,7 +210,12 @@ public class LPBungeePlugin extends Plugin 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);