mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-12-22 09:01:46 +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() + ")");
|
||||
}
|
||||
|
||||
if (database != null) {
|
||||
if (database != null && database.isInitialized()) {
|
||||
if (database instanceof SQLite) {
|
||||
((SQLite) database).vacuum();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user