fix refusal to delete wallet backup

This commit is contained in:
woodser 2023-04-28 17:22:05 -04:00
parent 8174ba34d9
commit 5c1cfdcff9

View File

@ -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) {