mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 02:19:48 -05:00
Try to fix shop missing problem
Former-commit-id: 2389865fad7d5d075c280bb0ef78a633ebd66eae
This commit is contained in:
1 parent
eda7355c68
commit
427afd29be
2 files changed
+10
No files matched your search
@@ -72,6 +72,12 @@ public class MySQLCore implements DatabaseCore {
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
try {
|
||||
for (Connection connection : POOL) {
|
||||
connection.close();
|
||||
}
|
||||
} catch (SQLException ignored) {
|
||||
}
|
||||
// Nothing, because queries are executed immediately for MySQL
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,10 @@ public class SQLiteCore implements DatabaseCore {
|
||||
@Override
|
||||
public void close() {
|
||||
flush();
|
||||
try {
|
||||
connection.close();
|
||||
} catch (SQLException ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user