mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
backup trade wallet on successful save and close
This commit is contained in:
parent
466e1f048e
commit
8a9b4ffe11
1 changed files with 1 additions and 3 deletions
|
@ -937,6 +937,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
|||
if (wallet == null) throw new RuntimeException("Trade wallet to close is not open for trade " + getId());
|
||||
stopPolling();
|
||||
xmrWalletService.closeWallet(wallet, true);
|
||||
maybeBackupWallet();
|
||||
wallet = null;
|
||||
pollPeriodMs = null;
|
||||
}
|
||||
|
@ -1561,9 +1562,6 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
|||
forceCloseWallet();
|
||||
}
|
||||
|
||||
// backup trade wallet if applicable
|
||||
maybeBackupWallet();
|
||||
|
||||
// de-initialize
|
||||
if (idlePayoutSyncer != null) {
|
||||
xmrWalletService.removeWalletListener(idlePayoutSyncer);
|
||||
|
|
Loading…
Reference in a new issue