From 52c9196dcc9f460dfe6de03bcbedf4403dd56d98 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Thu, 25 Apr 2024 03:05:13 +0700 Subject: [PATCH] [FIX] SQLCoreProvider --- .../launchserver/auth/core/SQLCoreProvider.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java index cff1ffd6..49161f85 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java @@ -1,10 +1,25 @@ package pro.gravit.launchserver.auth.core; +import pro.gravit.launchserver.LaunchServer; +import pro.gravit.launchserver.auth.AuthProviderPair; import pro.gravit.launchserver.auth.HikariSQLSourceConfig; import pro.gravit.launchserver.auth.SQLSourceConfig; public class SQLCoreProvider extends AbstractSQLCoreProvider { public HikariSQLSourceConfig holder; + + @Override + public void close() { + super.close(); + holder.close(); + } + + @Override + public void init(LaunchServer server, AuthProviderPair pair) { + holder.init(); + super.init(server, pair); + } + @Override public SQLSourceConfig getSQLConfig() { return holder;