mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-15 23:25:52 +01: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() + ")");
|
||||
}
|
||||
|
||||
if (database != null) {
|
||||
if (database != null && database.isInitialized()) {
|
||||
if (database instanceof SQLite) {
|
||||
((SQLite) database).vacuum();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user