mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-29 13:36:13 +01:00
Quick bug fix
This commit is contained in:
parent
8345b3a478
commit
142b794abf
@ -80,7 +80,7 @@ public class SaneEconomy extends SanePlugin implements ISaneEconomy {
|
|||||||
economyManager.getBackend().waitUntilFlushed();
|
economyManager.getBackend().waitUntilFlushed();
|
||||||
if (economyManager.getBackend() instanceof EconomyStorageBackendMySQL) {
|
if (economyManager.getBackend() instanceof EconomyStorageBackendMySQL) {
|
||||||
((EconomyStorageBackendMySQL) economyManager.getBackend()).closeConnections();
|
((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?");
|
this.getLogger().warning("SaneDatabase didn't terminate all threads, something weird is going on?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user