diff --git a/src/main/java/org/maxgamer/QuickShop/Database/MySQLCore.java b/src/main/java/org/maxgamer/QuickShop/Database/MySQLCore.java index deebecb..0c65a5e 100644 --- a/src/main/java/org/maxgamer/QuickShop/Database/MySQLCore.java +++ b/src/main/java/org/maxgamer/QuickShop/Database/MySQLCore.java @@ -4,7 +4,7 @@ import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; -import java.util.ArrayList; +import java.util.List; import java.util.Properties; public class MySQLCore implements DatabaseCore { @@ -12,7 +12,7 @@ public class MySQLCore implements DatabaseCore { /** The connection properties... user, pass, autoReconnect.. */ private Properties info; private static final int MAX_CONNECTIONS = 8; - private static ArrayList pool = new ArrayList<>(); + private static final List pool = Collections.synchronizedList(new ArrayList()); public MySQLCore(String host, String user, String pass, String database, String port) { info = new Properties();