Fixed MySQL connections not being released when performing a reload
This commit is contained in:
parent
8ed4216c64
commit
947c59882e
3 changed files with 15 additions and 4 deletions
|
|
@ -175,10 +175,7 @@ public class ConfigHandler extends Queue {
|
|||
|
||||
public static void loadDatabase() {
|
||||
// close old pool when we reload the database, e.g. in purge command
|
||||
if (ConfigHandler.hikariDataSource != null) {
|
||||
ConfigHandler.hikariDataSource.close();
|
||||
ConfigHandler.hikariDataSource = null;
|
||||
}
|
||||
Database.closeConnection();
|
||||
|
||||
if (!Config.getGlobal().MYSQL) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue