notify balance update after releasing wallet lock

This commit is contained in:
woodser 2025-09-15 02:48:24 -04:00 committed by woodser
parent 812dcf27e8
commit 777cbfdc0c

View file

@ -165,12 +165,12 @@ public class Balances {
// play sound if funds received // play sound if funds received
boolean fundsReceived = balanceSumBefore != null && getNonTradeBalanceSum().compareTo(balanceSumBefore) > 0; boolean fundsReceived = balanceSumBefore != null && getNonTradeBalanceSum().compareTo(balanceSumBefore) > 0;
if (fundsReceived) HavenoUtils.playCashRegisterSound(); if (fundsReceived) HavenoUtils.playCashRegisterSound();
}
// notify balance update // notify balance update
updateCounter.set(updateCounter.get() + 1); updateCounter.set(updateCounter.get() + 1);
} }
} }
}
private BigInteger getNonTradeBalanceSum() { private BigInteger getNonTradeBalanceSum() {
synchronized (this) { synchronized (this) {