From 5c1cfdcff9568c671ce080793bb0f4f3c17374df Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 28 Apr 2023 17:22:05 -0400 Subject: [PATCH] fix refusal to delete wallet backup --- core/src/main/java/haveno/core/trade/Trade.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/haveno/core/trade/Trade.java b/core/src/main/java/haveno/core/trade/Trade.java index 36097ca0..ea589c38 100644 --- a/core/src/main/java/haveno/core/trade/Trade.java +++ b/core/src/main/java/haveno/core/trade/Trade.java @@ -848,6 +848,7 @@ public abstract class Trade implements Tradable, Model { // delete trade wallet backups unless deposits requested and payouts not unlocked if (isDepositRequested() && !isDepositFailed() && !isPayoutUnlocked()) { log.warn("Refusing to delete backup wallet for " + getClass().getSimpleName() + " " + getId() + " in the small chance it becomes funded"); + return; } xmrWalletService.deleteWalletBackups(getWalletName()); } catch (Exception e) {