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