mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 02:12:25 +00:00
Only disconnect database if initialized
This commit is contained in:
parent
d9618aa227
commit
1736196a05
@ -256,7 +256,7 @@ public class ShopChest extends JavaPlugin {
|
|||||||
debug("Removed shop (#" + shop.getID() + ")");
|
debug("Removed shop (#" + shop.getID() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (database != null) {
|
if (database != null && database.isInitialized()) {
|
||||||
if (database instanceof SQLite) {
|
if (database instanceof SQLite) {
|
||||||
((SQLite) database).vacuum();
|
((SQLite) database).vacuum();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user