mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-03 17:40:10 +00:00
close trader dispute ticket on payout published
This commit is contained in:
parent
c42471191a
commit
48d902b58d
1 changed files with 4 additions and 1 deletions
|
@ -648,7 +648,10 @@ public abstract class Trade implements Tradable, Model {
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
// complete disputed trade
|
// complete disputed trade
|
||||||
if (getDisputeState().isArbitrated() && !getDisputeState().isClosed()) processModel.getTradeManager().closeDisputedTrade(getId(), Trade.DisputeState.DISPUTE_CLOSED);
|
if (getDisputeState().isArbitrated() && !getDisputeState().isClosed()) {
|
||||||
|
processModel.getTradeManager().closeDisputedTrade(getId(), Trade.DisputeState.DISPUTE_CLOSED);
|
||||||
|
if (!isArbitrator()) for (Dispute dispute : getDisputes()) dispute.setIsClosed(); // auto close trader tickets
|
||||||
|
}
|
||||||
|
|
||||||
// auto complete arbitrator trade
|
// auto complete arbitrator trade
|
||||||
if (isArbitrator() && !isCompleted()) processModel.getTradeManager().onTradeCompleted(this);
|
if (isArbitrator() && !isCompleted()) processModel.getTradeManager().onTradeCompleted(this);
|
||||||
|
|
Loading…
Reference in a new issue