From dd89851604ac012febab47ef309c6d88309906f8 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Wed, 2 Nov 2016 18:24:54 +0100 Subject: [PATCH] Run task closer on the main thread #992 --- src/main/java/fr/xephi/authme/AuthMe.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index b52caf32e..7a78a745b 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -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!");