Run task closer on the main thread #992

This commit is contained in:
Gabriele C 2016-11-02 18:24:54 +01:00
parent 1b1f6786da
commit dd89851604

View File

@ -343,10 +343,7 @@ public class AuthMe extends JavaPlugin {
}
// Wait for tasks and close data source
new Thread(
new TaskCloser(this, database),
"AuthMe-DataSource#close"
).start();
new TaskCloser(this, database).run();
// Disabled correctly
ConsoleLogger.info("AuthMe " + this.getDescription().getVersion() + " disabled!");