Quick bug fix

This commit is contained in:
AppleDash 2017-07-09 22:49:49 -04:00
parent 8345b3a478
commit 142b794abf

View File

@ -80,7 +80,7 @@ public class SaneEconomy extends SanePlugin implements ISaneEconomy {
economyManager.getBackend().waitUntilFlushed();
if (economyManager.getBackend() instanceof EconomyStorageBackendMySQL) {
((EconomyStorageBackendMySQL) economyManager.getBackend()).closeConnections();
if (((EconomyStorageBackendMySQL) economyManager.getBackend()).getConnection().getConnection().isFinished()) {
if (!((EconomyStorageBackendMySQL) economyManager.getBackend()).getConnection().getConnection().isFinished()) {
this.getLogger().warning("SaneDatabase didn't terminate all threads, something weird is going on?");
}
}