From 48d902b58d5c15a27b7f11e72ae8cfaf0b6ab429 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 15 Dec 2023 09:57:47 -0500 Subject: [PATCH] close trader dispute ticket on payout published --- core/src/main/java/haveno/core/trade/Trade.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/trade/Trade.java b/core/src/main/java/haveno/core/trade/Trade.java index 02235fdba0..7da8dec41b 100644 --- a/core/src/main/java/haveno/core/trade/Trade.java +++ b/core/src/main/java/haveno/core/trade/Trade.java @@ -648,7 +648,10 @@ public abstract class Trade implements Tradable, Model { }).start(); // 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 if (isArbitrator() && !isCompleted()) processModel.getTradeManager().onTradeCompleted(this);