mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-08 03:29:41 +01:00
Run task closer on the main thread #992
This commit is contained in:
parent
1b1f6786da
commit
dd89851604
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user