mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-22 08:29:16 -04:00
do not await updating trade state properties on trade thread
This commit is contained in:
parent
9a14d5552e
commit
923b3ad73b
@ -1852,7 +1852,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
||||
|
||||
this.state = state;
|
||||
requestPersistence();
|
||||
UserThread.await(() -> {
|
||||
UserThread.execute(() -> {
|
||||
stateProperty.set(state);
|
||||
phaseProperty.set(state.getPhase());
|
||||
});
|
||||
@ -1884,7 +1884,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
||||
|
||||
this.payoutState = payoutState;
|
||||
requestPersistence();
|
||||
UserThread.await(() -> payoutStateProperty.set(payoutState));
|
||||
UserThread.execute(() -> payoutStateProperty.set(payoutState));
|
||||
}
|
||||
|
||||
public void setDisputeState(DisputeState disputeState) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user