release wallet lock processing payout tx

This commit is contained in:
woodser 2024-05-06 12:04:06 -04:00
parent b179203dd2
commit 4ec5339e5d

View file

@ -143,9 +143,9 @@ public abstract class Trade implements Tradable, Model {
private final Object pollLock = new Object(); private final Object pollLock = new Object();
private final LongProperty walletHeight = new SimpleLongProperty(0); private final LongProperty walletHeight = new SimpleLongProperty(0);
private MoneroWallet wallet; private MoneroWallet wallet;
boolean wasWalletSynced; private boolean wasWalletSynced;
boolean pollInProgress; private boolean pollInProgress;
boolean restartInProgress; private boolean restartInProgress;
private Subscription protocolErrorStateSubscription; private Subscription protocolErrorStateSubscription;
private Subscription protocolErrorHeightSubscription; private Subscription protocolErrorHeightSubscription;
@ -1127,7 +1127,6 @@ public abstract class Trade implements Tradable, Model {
* @param publish publishes the signed payout tx if true * @param publish publishes the signed payout tx if true
*/ */
public void processPayoutTx(String payoutTxHex, boolean sign, boolean publish) { public void processPayoutTx(String payoutTxHex, boolean sign, boolean publish) {
synchronized (walletLock) {
log.info("Processing payout tx for {} {}", getClass().getSimpleName(), getId()); log.info("Processing payout tx for {} {}", getClass().getSimpleName(), getId());
// gather relevant info // gather relevant info
@ -1212,7 +1211,6 @@ public abstract class Trade implements Tradable, Model {
} }
} }
} }
}
pollWallet(); pollWallet();
} }